MemberPress: Hide the Coupon Field on Sign-Up Forms
Hides the coupon code field on MemberPress registration forms so visitors without a code don't leave to hunt for one; coupon links keep working.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Hides the coupon code field on MemberPress registration forms so visitors without a code don't leave to hunt for one; coupon links keep working.
Adds a [wpide_mepr_memberships] shortcode that lists the logged-in member's active memberships by name, for welcome boxes and account pages.
Rejects MemberPress registrations unless the email address belongs to one of your allowed domains, ideal for company or school memberships.
Redirects logged-in members who already own a membership away from that membership's sign-up page to their account page, avoiding accidental double purchases.
Hides navigation menu items from people who don't hold a given MemberPress membership, using a CSS class like wpide-mepr-123 on the menu item.
Adds a [wpide_member_download id="123"] shortcode that gives logged-in members a personal download link for a Media Library file and shows visitors a login link instead.
Sends logged-out visitors to the login page when they open entries or the archive of a chosen post type, and hides those entries from them in the REST API.
Adds a "Members only" box to the post and page editor; restricted content shows a login prompt to visitors and to roles you did not tick, and stays out of search and feeds for them.
Fires the Meta (Facebook) Pixel "Purchase" event with the order value, currency and product IDs on the order received page, once per order.
Rejects a Gravity Forms date of birth that makes the person younger than the age you set, for age-restricted sign-ups and applications.
Rejects uploads to a chosen ACF image field when the picture is smaller than the width and height you need, such as for hero banners.
Requires message fields to contain a few real words, which stops one-word and empty-looking submissions and gives you enough detail to reply.
Requires the message field of Fluent Forms to contain at least a few words, so you get enough detail to answer and fewer junk submissions.
Requires WPForms paragraph fields to contain at least a few words, so you get enough detail to reply and fewer one-word junk messages.
Ignores searches shorter than a few characters, which return huge, useless result lists and put extra load on the database.
Requires new site names to be at least a set number of characters (WordPress only asks for four), cutting down on throwaway and squatted names.
Rejects comments shorter than 15 characters or longer than 5,000 characters. Moderators are not limited.
Adds a [wpide_modal button="Open"]...[/wpide_modal] shortcode that shows a button which opens its content in an accessible modal window, built on the native dialog element.
Restyles the WooCommerce shop grid into clean cards with rounded images, consistent spacing, aligned buttons and a hover effect.
Gives Contact Form 7 forms clean full-width fields, clear focus outlines, readable error messages and a solid submit button that work in light and dark themes.
Adds a reassuring money-back guarantee box below the cart on the Easy Digital Downloads checkout, right where buyers decide.
Adds a dashboard widget comparing this month's revenue and order count so far with the same days of last month, with the change in percent.
Lists the posts with the most approved comments on the dashboard, a quick read on what sparks conversation.
Publishes a second feed at /feed/popular/ listing your posts with the most comments from recent months, handy for "popular this month" newsletters and sidebar widgets on other sites.