Title: Front-end Users Only
Last modified: August 31, 2016

---

# Front-end Users Only

 *  Resolved [Martin](https://wordpress.org/support/users/speechless/)
 * (@speechless)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/)
 * Hey guys!
 * Thanks for an ultimate plugin!!
 * I’m using the Front-end Users Only plugin and wondering if there’s a possibility
   to make the role accessibility for the users who are logged in with Front-end
   users Only instead of wordpress roles itself?
 * I totally understand if this is a case for the premium version of the plugin.
   If so I’m buying it!
 * Thanks!
 * [https://wordpress.org/plugins/widget-options/](https://wordpress.org/plugins/widget-options/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Jeffrey Carandang](https://wordpress.org/support/users/phpbits/)
 * (@phpbits)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218491)
 * Hi Marting,
 * Thank you very much for choosing this plugin. I’m really glad that you love it
   🙂
 * Regarding your concern, please do purchase the [pro version](http://codecanyon.net/item/extended-widget-options-for-wordpress/14024086?ref=phpbits)
   to get the restriction per user roles. Let me know if you have any other concerns.
   Looking forward for you to use the pro version 😉
 * Cheers,
    phpbits
 *  Thread Starter [Martin](https://wordpress.org/support/users/speechless/)
 * (@speechless)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218502)
 * Hey!
 * yeah, it wasn’t my question though.
    I understand that the restriction for the
   user roles is connected to the wordpress user. I’m not interested in the wordpress
   user. I’m using the plugin “Front-end Users Only” which is a plugin where a user
   can register and access specific pages that I can restrict.
 * I need your plugin to be able to “listen” to that plugin. Not the wordpress users
   if that’s possible!
 * Thanks
 *  / martin
 *  [Jeffrey Carandang](https://wordpress.org/support/users/phpbits/)
 * (@phpbits)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218505)
 * Hi Martin,
 * Thank you very much for the clarification. Just installed and try “Front-end 
   Users Only” and it seems that the plugin has it’s own user tables and didn’t 
   associate the users on any WordPress roles. In that case Widget Options will 
   not work. I haven’t used the plugin yet so I’m not sure if there is a filter 
   or hook that we can use to check if the user is FE registered or not. I hope 
   you understand. Thanks!
 * Cheers,
    phpbits
 *  Thread Starter [Martin](https://wordpress.org/support/users/speechless/)
 * (@speechless)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218514)
 * Actually there is..
 * I’m using another plugin called if menu where other people has done this function
   that adds to the theme function file.
 * Could this be helpful?
 *     ```
       add_filter( 'if_menu_conditions', 'my_new_menu_conditions' );
       function my_new_menu_conditions( $conditions ) {
         if (function_exists("EWD_FEUP_Get_All_Users")) {
           $conditions[] = array(
             'name'    =>   __( 'FEUP is logged in', 'if-menu' ),
             'condition' =>  'if_FEUP_is_logged_in'
           );
         }
           if (function_exists("EWD_FEUP_Get_All_Users")) {
           $conditions[] = array(
             'name'    =>   __( 'FEUP Level 1', 'if-menu' ),
             'condition' =>  'if_FEUP_Level_1'
           );
         }
         return $conditions;
       }
   
       function if_FEUP_is_logged_in() {
                 $CheckCookie = CheckLoginCookie();
                 $currentUser = $CheckCookie['Username'];
                 if( $currentUser ) return true;
                 return false;
       }
   
       function if_FEUP_Level_1() {
                 global $wpdb;
                 global $ewd_feup_user_table_name, $ewd_feup_levels_table_name;
                 $FEUP = new FEUP_User;
                   if($FEUP->Is_Logged_In()){
                   $Level_ID = $wpdb->get_var("SELECT Level_ID FROM $ewd_feup_user_table_name WHERE User_ID='" . $FEUP->Get_User_ID() . "'");
                   $Level = $wpdb->get_var("SELECT Level_Privilege FROM $ewd_feup_levels_table_name WHERE Level_ID='" . $Level_ID . "'");
                   }
                 if( $Level == 1 ) return true;
                 return false;
       }
       ```
   
 *  Thread Starter [Martin](https://wordpress.org/support/users/speechless/)
 * (@speechless)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218516)
 * In this case I can from the menus choose a condition wether the user is logged
   in with the Front-page users only plugin or not and then show or hide menu items.
 *  Thread Starter [Martin](https://wordpress.org/support/users/speechless/)
 * (@speechless)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218525)
 * Here is also an explanation of the global function in that plugin…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Front-end Users Only’ is closed to new replies.

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Martin](https://wordpress.org/support/users/speechless/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/front-end-users-only/#post-7218525)
 * Status: resolved