Thread: Drop down menu
View Single Post
Old March 1st, 2013, 08:33 PM
nzcid nzcid is offline
Join Date: Dec 2011
Posts: 404

Originally Posted by nzcid View Post
Hey Eric

Here I take it you are talking about the themes functions.php Yes?
Silly question of course you are.

Only thing I can find in the themes functions.php is this line

require_once($functions_path . 'menus.php'); // Menus WP 3.0

And the last entries in that file are

// Hook into the 'wp_dashboard_setup' action to register our other functions

add_action('wp_dashboard_setup', 'add_socrates_dashboard_widget');

function customize_meta_boxes() {

    //retrieve current user info

    global $current_user;



    //if current user level is less than 3, remove the postcustom meta box

    if ($current_user->user_level < 10)

        remove_meta_box('socrates_dashboard_widget', 'dashboard', 'normal');


add_action('admin_init', 'customize_meta_boxes');
So where would you place your code?