This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* removes the 'view' link for CPT in the admin bar | |
*/ | |
function pdw_admin_bar_render() { | |
global $wp_admin_bar; | |
if('client' == get_post_type()){ | |
$wp_admin_bar->remove_menu('view'); | |
} |