wp_plugin_dependencies_slug filter-hookWP 6.5.0

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

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

Usage

add_filter( 'wp_plugin_dependencies_slug', 'wp_kama_plugin_dependencies_slug_filter' );

/**
 * Function for `wp_plugin_dependencies_slug` filter-hook.
 * 
 * @param string $slug The slug.
 *
 * @return string
 */
function wp_kama_plugin_dependencies_slug_filter( $slug ){

	// filter...
	return $slug;
}
$slug(string)
The slug.

Changelog

Since 6.5.0 Introduced.

Where the hook is called

WP_Plugin_Dependencies::sanitize_dependency_slugs()
wp_plugin_dependencies_slug
wp-includes/class-wp-plugin-dependencies.php 603
$slug = apply_filters( 'wp_plugin_dependencies_slug', $slug );

Where the hook is used in WordPress

Usage not found.