WishList Member is one of the oldest membership plugins for WordPress.

They are currently having a sale on AppSumo and comes with lifetime updates and support.

3 sites: $49 (costs $197/year on WLM site)
10 sites: $98 (costs $297/year on WLM site)
50 sites: $147 (costs $397/year on WLM site)

If you do not already have a staple membership plugin of your choice, consider getting WishList Member.

I have tested it in Oxygen and the content restriction part works out of the box regardless of whether an entry like a Page is built using the WordPress editor or in Oxygen.

What does not however work out of the box is being able to edit Oxygen Templates when WLM is active.

On Oxygen Template page in the WP admin, the “Edit With Oxygen” button gets immediately replaced with “Your template settings have changed. Please save before editing with Oxygen.”

When we press Update, the same happens again making it impossible to edit that Template with Oxygen.

This is due to WLM adding the Pay Per Post Access meta box.

We can fix this by removing this meta box on all entries of the ct_template post type like so:

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Remove WishList Member meta box from Oxygen Templates

Code:

add_action( 'do_meta_boxes', 'remove_wlm_meta_box' );
/**
 * Removes WishList Member meta box from Oxygen Templates.
 */
function remove_wlm_meta_box(){
	remove_meta_box( 'wlm_postpage_metabox', 'ct_template', 'advanced' );
}

Leave the priority at 10.

Set the snippet to run only in admin.

Save changes and activate.

I shall explore the functions and shortcodes that WLM has and see if we can create a custom condition to restrict elements in Oxygen to users of a particular membership level and publish another tutorial.

References

https://wordpress.stackexchange.com/questions/127912/unable-to-remove-meta-box-from-custom-post-for-all-non-admin-users

https://wordpress.stackexchange.com/questions/118888/remove-custom-metaboxes-from-custom-post-type

https://codex.wordpress.org/Function_Reference/remove_meta_box

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: