Support » Plugin: Frontend Dashboard » can i show frontend deshboard for all user(role)? If yes then how!

Viewing 2 replies - 1 through 2 (of 2 total)
  • function fed_frontend_main_menu_fn( $custom ) {
    $custom[‘custom’] = array(
    ‘id’ => 99, //Some Random number
    ‘menu_slug’ => ‘custom’, //Menu Slug
    ‘menu’ => ‘Custom Menu’, //Menu Name
    ‘menu_type’ => ‘custom’,//Menu type, please don’t change it until you are aware of it
    ‘menu_order’ => 10, //Menu Order
    ‘menu_image_id’ => ‘fa fa-address-book’, //Font Awesome Icon
    ‘show_user_profile’ => ‘Enable’, //Show User Profile
    ‘extra’ => ‘yes’, // Please don’t change this too
    ‘user_role’ => serialize( array( ‘administrator’, ‘subscriber’ ) ), // Allow this user role to access that menu
    ‘extended’ => ”, // Don’t change until you are aware of this
    ‘menu_key’ => ”, // Don’t change until you are aware of this
    ‘menu_value’ => ” // Don’t change until you are aware of this
    );
    note:- ‘user_role’ => serialize( array( ‘administrator’, ‘subscriber’ ) ), // Allow this user role to access that menu{not working}

    Plugin Author vinoth06

    (@vinoth06)

    You can add the user role in custom code or while creating a menu in Dashboard, select all the user roles mentioned there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.