Memberpress isn’t cooperating with WooCommerce

Just solved this. Under memberpress options, we had to uncheck the option to “Keep members out of the WordPress Dashboard”. That was it! I think the woocommerce checkout page was using ajax to call “admin-ajax.php”. Memberpress was preventing users from accessing this page so it brought up the login redirect page instead. We’ll keep users … Read more

How to give members access to their own protected page?

funtion add_profile_page(){ $title_of_page = “page name”; if( null == get_page_by_title( $title_of_page ) ) { $post_id = wp_insert_post( array( ‘comment_status’ => ‘closed’, ‘ping_status’ => ‘closed’, ‘post_author’ => ‘1’, ‘post_name’ => ‘namehere’, ‘post_title’ => $title_of_page, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’ ) ); update_post_meta($post_id, ‘_wp_page_template’, ‘mycustomprofile’); } } add_filter( ‘after_setup_theme’, ‘add_profile_page’ ); your template page /* Template … Read more

Wishlist Content

In order for you to show your content for both levels you should need to mark the content protection level to be valid for those two levels. For example a post the can be seen by level 1 and level 2 should be marked by those 2 levels. Also you member the that need to … Read more

search does not yield access restricted results

If you setting the posts to private in WordPress, you can add this to your functions.php file: function include_private_in_search( $query ) { // not an admin page and is the main query if (!is_admin() && $query->is_main_query()){ $query->set( ‘post_status’, array ( ‘publish’, ‘private’ ) ); } } add_action( ‘pre_get_posts’, ‘include_private_in_search’ ); Then you can format the … Read more