Advertisement
geminilabs

[UL][site-reviews] fix role permissions

Oct 12th, 2020
2,154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement