Blog

hello php

[insert_php]
global $current_user;
print_r($current_user->role[0]);
if ($current_user->role[0]==’administrator’){
echo”hello”;
function hide_post_page_options() {
//global $post;
// Set the display css property to none for add category and add tag functions
$hide_post_options = “

“;
//print($hide_post_options);
}
add_action( ‘admin_head’, ‘hide_post_page_options’ );
}

[/insert_php]