PUM_Modules_Menu::init()
Initializes this module.
Description Description
Source Source
File: includes/modules/menus.php
public static function init() { add_filter( 'popmake_settings_misc', array( __CLASS__, 'settings' ) ); if ( PUM_Utils_Options::get( 'disabled_menu_editor', false ) ) { return; } // Merge Menu Item Options add_filter( 'wp_setup_nav_menu_item', array( __CLASS__, 'merge_item_data' ) ); // Admin Menu Editor add_filter( 'wp_edit_nav_menu_walker', array( __CLASS__, 'nav_menu_walker' ), 999999999 ); // Admin Menu Editor Fields. add_action( 'wp_nav_menu_item_custom_fields', array( __CLASS__, 'fields' ), 10, 4 ); add_action( 'wp_update_nav_menu_item', array( __CLASS__, 'save' ), 10, 2 ); add_filter( 'manage_nav-menus_columns', array( __CLASS__, 'nav_menu_columns' ), 11 ); }
Expand full source code Collapse full source code View on Trac