Created
January 20, 2017 19:19
-
-
Save anthonysbrown/811b5b4bc1e918740a11b44fc4374026 to your computer and use it in GitHub Desktop.
Smarty Document Manager - Remove Add File Bar
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
<?php | |
#this function removes the add file bar for non admin users | |
#place this in your themes function.php file | |
add_filter('sp_cu_below_search_nav', 'remove_cdm_bar'); | |
function remove_cdm_bar($html){ | |
if(current_user_can('manage_options') == false){ | |
$html = ''; | |
} | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment