Articles of wp admin

Why do Metabox use Nonces?

Why is it advised for admin panel metaboxes to use nonces? Every example I see of creation and saving metabox data there are nonces involved but aren’t nonces a bit unnecessary in this case?

Rename menu items for All except super admin

I can rename wp-admin menu items But How Can I active it for all users except Super Admin ? add_filter(‘gettext’, ‘rename_admin_menu_items’); add_filter(‘ngettext’, ‘rename_admin_menu_items’); function rename_admin_menu_items( $menu ) { $menu = str_ireplace( ‘Dashboard’, ‘Home’, $menu ); return $menu; }

how to create my own edit.php admin page code or template for my custom post type

Most plugins try to hide the components of the edit.php screen on wp admin and replace it with meta boxes to create the needed layout and fields for the custom post type. But this means that there is still unnecessary code on that edit.php page not used and increases the page load. Also, Not everything […]

Cannot redeclare wp_update_core()

I think it’s right after the WordPress update, we can’t access the wp-admin to log in anymore. Fatal error: Cannot redeclare wp_update_core() (previously declared in C:\DWASFiles\Sites\pyromaitre\VirtualDirectory0\site\wwwroot\wp-admin\includes\update.php:288) in C:\DWASFiles\Sites\pyromaitre\VirtualDirectory0\site\wwwroot\wp-admin\includes\deprecated.php on line 1076 What cause this? How can I resolve it?

add slug beside name in Admin Category Checklists

im creating a lot of Categories with the same Name and different slugs, but im having problems identifying which is which in the admin panel, so i came up with the idea of inserting the slug besides the Name in the meta box…im using a taxonomy “portfolio-type”…anyway to do this i need to edit this […]

how to customize the default #adminmenu in wp-admin

i want to customize the #adminmenu for the wp-admin, how can i target the class via plugin? im planning to use below function, but im not sure if this is the correct way of doing so.. add_action(‘admin_head’, ‘custom_nav’); function custom_nav(){ include ‘css/customNav.css’; } //inside customNav.css #adminmenu { //insert styles here } the main change i […]

Add filter-by-tag in the all posts admin console page

By default the ‘all posts‘ page contains the following filters by date by category Is there a way I can add ‘by tags’ as well ?

Using Foundation 5 in WordPress Administration Area

I am attempting to implement Zurb’s Foundation 5 in a development to enable me to utilize its functionality to create better page UIs within the wp-admin. However, for some reason Foundation’s JS is not working. Here is source from a custom wp-admin page: <!DOCTYPE html> <!–[if IE 8]> <html xmlns=”http://www.w3.org/1999/xhtml” class=”ie8 wp-toolbar” lang=”en-US”> <![endif]–> <!–[if […]

Remove header text option from the backend

I want to remove the header text option from WordPress backend, under the Appearance->Header page at the bottom. Is there any hook or filter to remove this option from the backend? Thanks!

Add Custom Script in Other Plugin's Options page

I am trying to put a custom inline JavaScript is an options page created by a plugin. The page URL is like this wp-admin/admin.php?page=psbg. This is the code I am using to output my script at the head. function add_scripts() { $current_screen = get_current_screen(); if ( $current_screen = ‘admin.php?page=psbg’ ) { // My codes here […]