WordPress SSO with MemberPress
WordPress SSO with MemberPress
WordPress SSO with MemberPress
Checkout Amember http://www.amember.com/p/. This is what WooThemes and a few other shops use. I’ve used it myself and it’s a quality product.
You are going to want to insert your code at the top of the page templates for the Woo pages you would like the redirect to affect rather than the functions file. So for example if you want to redirect users when they try to access an individual product page you could put it at … Read more
The same concept as Dominic’s (no need of a members plugin) but expanded to use a Meta Box, visible only for Admins, with a dropdown list with all the users (with exceptions). Code borrowed and adapted from this answer. Put in functions.php: // List Users add_action( ‘admin_init’, ‘wpse_33725_users_meta_init’ ); // Save Meta Details add_action( ‘save_post’, … Read more
there is a lot of discussion about this in wishlisMembers support forum but the developers over there ignore it. Any way try this: // get the current user level from WP more important is global $user. $user = wp_get_current_user(); // Get user levels from WishlistMembers $levels = WLMAPI::GetUserLevels($user->ID); //then run the check for the level … Read more
I can confirm that the values are saved in the User meta table as I have been working on the same exact thing. meta_key contains the name of the input (case sensitive) and meta_value the actual value. User-ID is also a column, so, theoretically, you can get all the values for a certain user. I’m … Read more
A “secret” full text feed Here’s a demo plugin that gives you a full text feed at: example.tld/secretfeed/ Just remember to flush the rewrite rules, e.g. by visiting the Settings/Permalinks page: <?php /** * Plugin Name: Secret Full Text Feed * Plugin URI: http://wordpress.stackexchange.com/a/208724/26350 */ add_action( ‘init’, function() { add_feed( ‘secretfeed’, ‘do_feed_rss2’ ); }); add_action( … Read more
I haven’t had time to test this, but you can probably do this with the the_content filter hook. This way you won’t have to insert this code into archive.php, category.php, tag.php, author.php and any other archive file depending on how your theme is structured. In your theme’s functions.php file add the following: function my_filter( $content … Read more
Have you tried the Front-End Users plugin? Please go through the documentation example hooks on how to modify it. I think it will fulfill your needs. Hope that helps. marikamitsos
Maybe because $user_levels is an array? Try something like: // Compare user_levels with post_level $result=””; foreach($user_levels as $user_level) { $result .= array_search($user_level, $post_levels); } if ($result) { return true; }