Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Unwanted dashboard redirect when 'settings-updated' is present › Reply To: Unwanted dashboard redirect when 'settings-updated' is present
05/05/2017 at 03:42
#3679
Vladimir
Keymaster
Hi Frederick,
You can use this code to add additional arguments to allowed list for this page:
add_filter('ure_admin_menu_access_allowed_args', 'ure_allow_args_for_oxfam_options', 10, 1);
function ure_allow_args_for_oxfam_options($args) {
$args['admin.php']['oxfam-options'] = array(
'page',
'settings-updated'
);
return $args;
}
Install it as must use plugin or add to funcitions.php file of active theme.