wp_plugin_dependencies_slug

wp_plugin_dependencies_slug

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_plugin_dependencies_slug') is found 1 times:

  • /wp-includes/class-wp-plugin-dependencies.php line 603
    			 * @since 6.5.0
    			 *
    			 * @param string $slug The slug.
    			 */
    			$slug = apply_filters( 'wp_plugin_dependencies_slug', $slug );
    
    			// Match to WordPress.org slug format.
    			if ( preg_match( '/^[a-z0-9]+(-[a-z0-9]+)*$/mu', $slug ) ) {
    				$sanitized_slugs[] = $slug;
    			}
    		}
    

See this hook used in plugins: