-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
status:needs-devEarly execution signal (triage queue for engineering)Early execution signal (triage queue for engineering)status:needs-more-infoMissing details to proceedMissing details to proceed
Milestone
Description
Add Plugin Dependency for Wetu Importer Add-On
Description:
The LSX Importer for Wetu plugin should indicate that it requires the Tour Operator plugin to be installed and active for proper functionality. The plugin header should include the new Requires Plugins field to enforce this dependency and prevent activation if the core Tour Operator plugin is missing.
Requirements:
- Add a
Requires Pluginsfield in the header to indicate dependency on the Tour Operator plugin. - Implement a dependency check using the
WP_Plugin_Dependenciesclass. - Display an admin notice if the Tour Operator plugin is not installed or active.
- Prevent activation of the Wetu Importer plugin if the dependency is unmet.
- Implement a dependency check using the
WP_Plugin_Dependenciesclass to verify that the Tour Operator plugin is installed and active. - Display an admin notice if the Tour Operator plugin is not installed, informing the user that it is required for the Where To Importer to work.
- Prevent the activation of the Where To Importer if the Tour Operator plugin is not active.
Technical References:
- Utilize the WP_Plugin_Dependencies class to manage plugin dependencies and ensure proper plugin loading behavior.
Code Snippet:
/*
* Requires Plugins: tour-operator
*/Acceptance Criteria:
- When attempting to activate the Where To Importer, it should check if the Tour Operator plugin is installed and active using
WP_Plugin_Dependencies. - An informative admin notice should appear if the dependency is not met.
- The Where To Importer add-on should deactivate automatically if the Tour Operator plugin is missing or deactivated.
Metadata
Metadata
Assignees
Labels
status:needs-devEarly execution signal (triage queue for engineering)Early execution signal (triage queue for engineering)status:needs-more-infoMissing details to proceedMissing details to proceed
Type
Projects
Status
📥 Needs Dev