Closed remcotolsma closed 6 months ago
Seems there is a filter for this specific case:
The
wp_plugin_dependencies_slug
filter hook has been introduced to allow for alterations to dependency slugs. For example, if a dependent plugin declaresmy-plugin
as a dependency, and a premium version ofmy-plugin
exists, the premium version can filter the slug and convert it tomy-plugin-pro
so that it can be detected by Plugin Dependencies.
https://make.wordpress.org/core/2024/03/05/introducing-plugin-dependencies-in-wordpress-6-5/
Originally posted by @rvdsteege in https://github.com/pronamic/wp-pronamic-pay-adyen/commit/b8b2fd05efca0f1685fca3e1b7e89bd0b8cab71a#commitcomment-142048382
Currently this plugin requires https://wordpress.org/plugins/pronamic-ideal/, but this add-on also works fine with the Pronamic Pay Premium plugin.
The "Requires Plugins" header is limited, we cannot use 'or' conditions. https://make.wordpress.org/core/2024/03/15/wordpress-6-5-field-guide/
Shall we remove this header?
https://github.com/pronamic/wp-pronamic-pay-adyen/blob/839b42e58d4d3a676703b0a28b14a583ccce0766/pronamic-pay-adyen.php#L19