W3cubDocs

/WordPress

apply_filters( ‘wp_plugin_dependencies_slug’, string $slug )

Filters a plugin dependency’s slug before matching to the WordPress.org slug format.

Description

Can be used to switch between free and premium plugin slugs, for example.

Parameters

$slugstring
The slug.

Source

$slug = apply_filters( 'wp_plugin_dependencies_slug', $slug );

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_plugin_dependencies_slug