WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about nav_menu_submenu_css_class

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-walker-nav-menu.php apply_filters 75 /**
* Filters the CSS class(es) applied to a menu list element.
*
* @since 4.8.0
*
* @param string[] $classes Array of the CSS classes that are applied to the menu `
    ` element.
    * @param stdClass $args An object of `wp_nav_menu()` arguments.
    * @param int $depth Depth of menu item. Used for padding.
    */

Hook Parameters

Parameter Type Name Description
string[] $classes Array of the CSS classes that are applied to the menu `
    ` element.
stdClass $args An object of `wp_nav_menu()` arguments.
int $depth Depth of menu item. Used for padding.