WordPress nuggets to develop your theme

Here are some classic nuggets I use all the time when developing and enhancing WordPress themes.

 

From Digging Into WordPress: https://digwp.com

Dynamic Copyright in your WordPress Footer

Adding Custom Menu Locations in WordPress Themes

add it in your page template, or footer, header etc.
 

 

 

function hide_update_notice_to_all_but_admin_users()
{
if (!current_user_can(‘update_core’)) {
remove_action( ‘admin_notices’, ‘update_nag’, 3 );
}
}
add_action( ‘admin_head’, ‘hide_update_notice_to_all_but_admin_users’, 1 );

Related Posts

No Comment

Comments are closed.