Advertisement
geminilabs

[UL][site-reviews] fix role permissions

Oct 12th, 2020
2,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. /**
  2.  * This should fix any permissions problems with your roles.
  3.  * !!IMPORTANT!! remove this snippet after the wp-admin page has been refreshed!
  4.  * Paste this in your theme's functions.php file, or use the Code Snippets plugin.
  5.  */
  6. add_action('admin_init', function () {
  7.     if (function_exists('glsr')) {
  8.         glsr('Role')->resetAll();
  9.     }
  10. });
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement