Skip to content

Add the new "Requires Plugins" header to the Wetu Importer plugin to indicate the Tour Operator plugin dependency #172

@ashleyshaw

Description

@ashleyshaw

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 Plugins field in the header to indicate dependency on the Tour Operator plugin.
  • Implement a dependency check using the WP_Plugin_Dependencies class.
  • 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_Dependencies class 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

Labels

status:needs-devEarly execution signal (triage queue for engineering)status:needs-more-infoMissing details to proceed

Projects

Status

📥 Needs Dev

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions