wp_edit_nav_menu_walker

wp_edit_nav_menu_walker

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_edit_nav_menu_walker') is found 2 times:

  • /wp-admin/includes/ajax-actions.php line 1586
    		}
    	}
    
    	/** This filter is documented in wp-admin/includes/nav-menu.php */
    	$walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] );
    
    	if ( ! class_exists( $walker_class_name ) ) {
    		wp_die( 0 );
    	}
    
    	if ( ! empty( $menu_items ) ) {
    
  • /wp-admin/includes/nav-menu.php line 1266
    		 *
    		 * @param string $class   The walker class to use. Default 'Walker_Nav_Menu_Edit'.
    		 * @param int    $menu_id ID of the menu being rendered.
    		 */
    		$walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
    
    		if ( class_exists( $walker_class_name ) ) {
    			$walker = new $walker_class_name();
    		} else {
    			return new WP_Error(
    				'menu_walker_not_exist',
    

See this hook used in plugins: