selected_icons()->ID ), QUADMENU_PLUGIN_VERSION, 'all' ); wp_register_script( 'quadmenu-admin', QUADMENU_PLUGIN_URL . 'build/backend/index.js', $admin['dependencies'], $admin['version'], false ); } public function icons() { global $pagenow, $quadmenu_active_locations; if ( $pagenow != 'nav-menus.php' ) { return; } if ( ! is_array( $quadmenu_active_locations ) ) { return; } if ( ! count( $quadmenu_active_locations ) ) { return; } ?>

$class, 'notice' => $notice, ); update_option( 'quadmenu_admin_notices', $notices ); } function ajax_dismiss_notice() { if ( $notice_id = ( isset( $_POST['notice_id'] ) ) ? sanitize_key( $_POST['notice_id'] ) : '' ) { update_user_meta( get_current_user_id(), $notice_id, true ); wp_send_json( $notice_id ); } wp_die(); } public static function instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }