array( array( 'id' => 'qmen-products-edit-by-id', 'prompt' => __( 'Enter Product ID', 'adminfly-fast-navigator' ), 'base' => admin_url( 'post.php' ), 'paramName' => 'post', 'suffix' => '&action=edit', ), array( 'id' => 'qmen-orders-edit-by-id', 'prompt' => __( 'Enter Order ID', 'adminfly-fast-navigator' ), 'base' => admin_url( 'post.php' ), 'paramName' => 'post', 'suffix' => '&action=edit', ), array( 'id' => 'qmen-posts-edit-by-id', 'prompt' => __( 'Enter Post ID', 'adminfly-fast-navigator' ), 'base' => admin_url( 'post.php' ), 'paramName' => 'post', 'suffix' => '&action=edit', ), array( 'id' => 'qmen-pages-edit-by-id', 'prompt' => __( 'Enter Page ID', 'adminfly-fast-navigator' ), 'base' => admin_url( 'post.php' ), 'paramName' => 'post', 'suffix' => '&action=edit', ), array( 'id' => 'qmen-users-edit-by-id', 'prompt' => __( 'Enter User ID', 'adminfly-fast-navigator' ), 'base' => admin_url( 'user-edit.php' ), 'paramName' => 'user_id', ), ), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'qmen_search_nonce' ), ); wp_localize_script( 'qmen-admin-js', 'QMEN_EDIT_BY_ID', array_merge( $config, array( 'linkTarget' => get_option( 'qmen_link_target', '_blank' ), ) ) ); } ); /** * Style the AdminFly root in the admin bar with a dark violet background. */ function qmen_toolbar_styles() { if ( ! is_admin_bar_showing() ) { return; } $opts = get_option('adminfly_settings'); $is_active = !empty($opts['activate_optimisation']) && empty($opts['debug_disable_all']); $accent = ($is_active && !empty($opts['accent_color'])) ? $opts['accent_color'] : '#3a0a7a'; $hover_style = ($accent === '#3a0a7a') ? 'background-color:#4b118f;' : 'background-color:' . $accent . '; filter: brightness(1.15);'; echo ''; } add_action( 'admin_head', 'qmen_toolbar_styles' ); add_action( 'wp_head', 'qmen_toolbar_styles' );