Admin Access for specific page(s)

I know this question is kind of off-topic but I need to come in and say firstly don’t add anybody… anybody…. ANYBODY!! as admin on the site… At that level they can do everything you can do, or probably a lot more if they actually know what they’re doing :-p It’s a good way of … Read more

Members-only page, but accessible via sharable link

Can be done easily with a shortcode: [members-only]…content…[/members-only] The shortcode will return content for members, or text ‘<h3>This is for members only!</h3>‘, for non member request. The callback function of the shortcode will check who made a request, and return display data accordingly. Any other text on page/post will be displayed as is. For more … Read more

One membership area for two websites

I am not sure if you just want to share the same user logins across websites or that you want to set up a third platform for the users? In the first case I recommend looking at the answers here, they may be useful: https://wordpress.org/support/topic/how-to-share-logins-and-users-between-entirely-separate-multiple-wordpress-sites/ Also https://wordpress.org/plugins/ultimate-member/ is well suited for multisite installations. I have … Read more

Preventing RSS feeds access to the authenticated uses only

Assuming that: Different types of memberships = different User Roles You can simply apply some conditional logic to achieve this: function disable_rss_conditionally() { // First let’s check if the user is logged in // you can use current_user_can() to pass to forbidden roles if (! is_user_logged_in() || current_user_can( ‘subscriber’ ) ) { // you can … Read more

Get WordPress username to customize url

You can only do that if the user is logged in (otherwise there is no “current” user). Depending on what your specific use case is, it would be something like this: if ( is_user_logged_in() ) { global $current_user; $current_user = wp_get_current_user(); // get the username: $username = $current_user->user_login; // set up the URL: $url = … Read more