Change WordPress user roles and capabilities Forums Bug Reports "Activate Administrator Menu Access module" bug Reply To: "Activate Administrator Menu Access module" bug

#4375
Vladimir
Keymaster

Hi Urs,

Code for LayerSlider URL arguments will be:


add_filter('ure_admin_menu_access_allowed_args', 'ure_allow_arg_for_admin', 10, 1);

function ure_allow_arg_for_admin($args) {

    $args['admin.php']['layerslider'][] = 'id';
    $args['admin.php']['layerslider'][] = 'action';
    $args['admin.php']['layerslider'][] = '_wpnonce';
    
    return $args;

}