Quote:
Originally Posted by nzcid
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
Code:
// 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;
get_currentuserinfo();
//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?