Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. // Add additional option "Hide Screen Options" for every role at Users->User Role Editor
  3. add_filter('ure_role_additional_options', 'add_hide_screen_options', 10, 1);
  4.  
  5. function add_hide_screen_options( $items ) {
  6.  
  7. $item = URE_Role_Additional_Options::create_item(
  8. 'hide_screen_options',
  9. esc_html__('Hide Screen Options', 'user-role-editor'),
  10. 'screen_options_show_screen',
  11. 'ure_show_screen_options'
  12. );
  13. $items[ $item->id ] = $item;
  14.  
  15. return $items;
  16. }
  17.  
  18.  
  19. function ure_show_screen_options( $show ) {
  20.  
  21. $show = false;
  22.  
  23. return $show;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement