Location: admin_footer
admin footer many ( Mihai )
function sg24_prettyTime() { return moment().format(‘h:mm:ss A’); } function sg24_sleepAndPrint(ms) { return new Promise(resolve => setTimeout(() => { console.log(“Slept for “+ms+” ms and now its “+sg24_prettyTime()); // Print the formatted time using Moment.js resolve(); // Resolve the promise after the time…Continue reading
PDFLib loading admin-only-area
Collapsed Menu Reset for Mobile Menu
/** * WordPress admin menu handler – UiPress direct approach */ (function($) { // Execute when document is ready $(document).ready(function() { // Set up the mobile menu click handler setupMobileHandler(); // Also handle resize events $(window).on(‘resize’, debounce(function() { setupMobileHandler(); },…Continue reading
Admin Screen Options for //bitlash Admin Theme
/** * Bitlash Admin Screen Options – Production Version * * This script creates a direct mirror of any WordPress screen options * found in the current admin page, with select elements set to 100% width. * * Compatible with…Continue reading
Admin Menu Separator Class
/** * WordPress Admin Menu Separator Class – Updated * * This script targets the specific structure of the admin menu separators * and adds the “bshSeparator” class to the parent container */ (function() { // Function to add classes…Continue reading
NextGEN Pro – Hide the Ecommerce dashboard menu item
.toplevel_page_ngg_ecommerce_options { display: none !important; }Continue reading
NextGEN Pro – Hide the Ecommerce dashboard menu item
.toplevel_page_ngg_ecommerce_options { display: none !important; }Continue reading
Admin/Nav Extension – JS
jQuery(function($) { var $page_title = $(“#wpbody-content > .wrap > h1”); var $current_menu_item = $(“#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu”); if ($current_menu_item.length == 1) { var $menu_links = []; var $submenu = $current_menu_item.parent().find(“ul > li > a”); var $header_nav = $(“ “).addClass(“mx_nav”); var $title…Continue reading