wp_page_menu_args
Filters the arguments used to generate a page-based menu.
Usage
add_filter( 'wp_page_menu_args', 'wp_kama_page_menu_args_filter' ); /** * Function for `wp_page_menu_args` filter-hook. * * @param array $args An array of page menu arguments. See wp_page_menu() for information on accepted arguments. * * @return array */ function wp_kama_page_menu_args_filter( $args ){ // filter... return $args; }
- $args(array)
- An array of page menu arguments. See wp_page_menu() for information on accepted arguments.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
wp_page_menu_args
wp-includes/post-template.php 1455
$args = apply_filters( 'wp_page_menu_args', $args );