New answers tagged

0

Maybe JS will do what you want? This should be the easiest way to achieve what you want. More info about removing query string param in JS


0

If you are using the Settings API for the Save Changes, you are probably using a nonce field with it (if not it is easy enough to add with wp_nonce_field whether you are using Settings API or not) ... So testing for the presence of the nonce field is one way to test and help you distiguish between what action should be happening so as to not update the ...


-1

add_action( 'admin_menu', 'dashboard_remove_menu_pages' ); function dashboard_remove_menu_pages() { remove_submenu_page( 'themes.php', 'nav-menus.php' ); add_menu_page('Menu', 'Menu', 'edit_themes', 'nav-menus.php', '' , 'dashicons-menu', 3); } this should work. also with the positioning. in this case menu position: 3. just abide to ...


0

A quick Google Search gave me several results and I managed to find an easy solution. The code below is from Easy Web Design Tutorial website but I will paste it below in case that link ever breaks. function reorder_admin_menu( $__return_true ) { return array( 'index.php', // Dashboard 'edit.php?post_type=page', // Pages '...


1

There's a combination of two filters, menu_order does the job, but you also use custom_menu_order to enable menu_order. function wpse_233129_custom_menu_order() { return array( 'index.php', 'upload.php' ); } add_filter( 'custom_menu_order', '__return_true' ); add_filter( 'menu_order', 'wpse_233129_custom_menu_order' ); This will put upload.php (the ...



Top 50 recent answers are included