Forum Replies Created
-
AuthorPosts
-
artesea
ParticipantBug in the updated plugin, when enabling the captcha on the login page I now get these error messages.
Warning: Missing argument 2 for SwpmCaptcha::get_recaptcha_html(), called in ...\wp-content\plugins\swpm-recaptcha\classes\class.swpm-captcha.php on line 123 and defined in ...\wp-content\plugins\swpm-recaptcha\classes\class.swpm-captcha.php on line 62 Warning: Missing argument 3 for SwpmCaptcha::get_recaptcha_html(), called in ...\wp-content\plugins\swpm-recaptcha\classes\class.swpm-captcha.php on line 123 and defined in ...\wp-content\plugins\swpm-recaptcha\classes\class.swpm-captcha.php on line 62Looking at the code line 123 should be
$output = $this->get_recaptcha_html( $settings->get_value( 'swpm-addon-google-recaptcha-site-key' ), $settings->get_value( 'swpm-addon-recaptcha-theme' ), $settings->get_value( 'swpm-addon-recaptcha-size' ) );May 15, 2018 at 8:50 am in reply to: Members NO access to WP Dashboard, but I need WP Editors to have access #14428artesea
ParticipantLooking at the code lines 177 and 204 of class.simple-wp-membership.php could easily be set to another variable from the admin pages.
However for those who wan’t more than just admins having backend access you can add these lines to your themes functions.php file (in this code subscribers are blocked from having the admin bar and access to wp-admin pages)
/*hide admin bar and wp-admin from subscribers */ if(current_user_can('subscriber')) { add_filter('show_admin_bar', '__return_false'); } function MY_THEME_NAME_admin_init() { if(current_user_can('subscriber') && (!wp_doing_ajax())) { wp_die('You do not have permission to view this page'); } } add_action('admin_init', 'MY_THEME_NAME_admin_init');Whilst making sure all the three tick boxes within the Simple Membership settings aren’t ticked.
May 14, 2018 at 4:38 pm in reply to: Members NO access to WP Dashboard, but I need WP Editors to have access #14420artesea
ParticipantGoing to follow this up as I appear to have this issue. I’m the admin, and have several editors. They need access to /wp-admin whilst any of our subscribers should be blocked from the dashboard.
I turned on WP Membership -> Settings -> General Settings -> Hide Adminbar, Show Adminbar to Admin and Disable Access to WP Dashboard
Then in WP Membership -> Settings -> Advanced Settings -> Admin Dashboard Access Permission to Author.My editor tried to login but gets “The admin of this site does not allow users to access the wp dashboard.”
If I untick “Disable Access to WP Dashboard” they can reach the dashboard and edit pages fine, however then my subscribers can also visit the dashboard too.
I assumed that “Admin” in the General Settings page meant the value set in the “Admin Dashboard Access Permission” field.
-
AuthorPosts