When a member posts a comment on your site, the recipe below will display their Membership Level name following the comment author’s name.
This can be useful for many membership sites, specifically sites that have multiple tiers of membership which equate to a member’s status, skill-level or denote a relationship to your company.
The author name is also updated in the Comments section of the admin dashboard so you can tell what membership levels users have when approving pending comments. This has been particularly useful for us on our own site to tell which of our blog post commenters are paying members.
Our Addon packages extension allows you to sell access to individual pages or posts, or sell a la carte items for a flat fee.
This recipe will allow you to set a specific checkout level to use when a non-member selects to purchase one of your Addons. Previously, the plugin simply included logic to select the “first least expensive membership” level assigned to the post.
The code example below will allow logged in Members the ability to access your original homepage when using our Member Homepages Add On.
The code example below will prevent users from setting their username to an email address. This is useful if you want users to use an actual username instead of using their email address in both username and email fields.
Our Pay by Check Add On adds a second payment option for members to make purchase by “Check”. With a little help from WordPress’ gettext filter, you can open up more payment options for your members. What types of changes can you make? In some parts of the world, “Check” is spelled “Cheque”. Alternately, you could use the Pay by Check Add On as a workaround to offer members the option to pay by bank transfer. This code recipe will help you rename “Check” to “Cheque,” “Pay by Bank Transfer,” “Send an Invoice” or any other messaging you desire. Our recipe below changes the words “Pay by Check” to “Pay by Cheque or Bank Transfer” on the Membership Checkout page. If you need this to say something else, edit the $translated_text variable on line 11. The Code Recipe https://gist.github.com/travislima/012893d789e57b5055bbc1570753ebf6 Customize and add this code to a helper PMPro Customizations plugin (our recommended method)….
This code recipe creates affiliates or updates the status of existing affiliates based on their membership level when using AffiliateWP.
The affiliate is created after their membership level is changed to the appropriate level (in the recipe, this is level ID 1). When membership is cancelled or expires, the affiliate’s status is changed to “inactive”.
Prevent non-members from viewing product prices or purchasing products from your WooCommerce store with this Code Recipe
If you allow guest authors on your membership site as a feature of membership, this recipe will demonstrate how to automatically change their posts’ statuses to “draft” when membership is cancelled.
If you have multiple authors on your membership site, this recipe will override the post’s membership requirements and always let the author view their content (ignoring their current or past membership level).
Remember you can set new members to the “author” role at membership checkout via the methods in this previous article.
Below are three code recipes that will add a column to the All Posts, All Pages, or Categories screens in the WordPress Dashboard. This is an easy way to see how your content is being restricted for members.
Remember, you can lock posts and pages using the “Require Membership” meta box or lock a category under the Memberships > Membership Levels > Edit Level screen.