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.8

apply_filters('wp_plugin_dependencies_slug') is found 1 times:

  • /wp-includes/class-wp-plugin-dependencies.php line 603
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
         * @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: