Code to run for a specific user only
-
I have added this snippet:
$user = wp_get_current_user();
function fww_hook_css() {
?>
<style>
#easy-support-videos-insert-video {
display : none;
}
</style>
<?php
}
if ( $user->user_login == ‘lfirth’ ) {
add_action(‘wp_head’, ‘fww_hook_css’);
}But it doesn’t seem to work.
Any suggestions?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Code to run for a specific user only’ is closed to new replies.