Language Switcher
Account Menu

Sync Once, Sell Everywhere

Multi-Platform Stock Sync: The Ultimate Inventory Solution for E-commerce Entrepreneurs

MPSS Core Plugin

Platform Registration

The platform registration system is a key feature of the MPSS core plugin, allowing seamless integration of various e-commerce platforms. This modular approach enables easy expansion of MPSS capabilities without modifying the core code.

How Platform Registration Works

  1. Registration Hook: MPSS provides a WordPress filter hook mpss_add_platform that sub-plugins use to register themselves.

  2. Sub-plugin Implementation: Each sub-plugin implements a registration function that hooks into mpss_add_platform.

  3. Dynamic Discovery: The MPSS core automatically discovers and loads registered platforms during runtime.

Registration Process

  1. Sub-plugin registers itself

  2. When MPSS initializes, it calls the mpss_add_platform filter for each known platform name.

  3. MPSS stores the registered class name and uses it for subsequent operations.

Benefits of This Approach

  1. Modularity: New platforms can be added without changing the MPSS core.
  2. Flexibility: Platforms can be easily enabled or disabled.
  3. Maintainability: Each platform's code is separate, making updates easier.
  4. Performance: Only active platforms are loaded and processed.
Previous
Configurations