Change user role for buyers
This is useful if, for example, you want buyers to be able to access dedicated content…
Move Jump to Recipe above featured image in Genesis
/** * Ensures the "Jump to Recipe" button is added above the featured image. */ add_action(…
Prevent Duplicate Cart Items
Prevents the same item from being added to the cart multiple times.
Exclude downloads from search
Exclude downloads from showing in search results
Add custom CSS in the Admin
Use this snippet to add custom styles in the WordPress admin head. Add your CSS code…
Custom Tab Order For Dashboard
The following code will allow you to change the order that the front end dashboard is…
Remove Default jQuery
// Remove default WordPress jquery wp_deregister_script( 'jquery' ); //Remove jquery migrate add_action( 'wp_default_scripts', 'remove_jquery_migrate' ); function…
Estimated reading time
// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…
MemberPress: Add Author Custom Bio Shortcode
Add the [mpcs-author-custom-bio slug="mepr_short_bio"] shortcode to a post, page, or course. The shortcode will display the…
Add WooCommerce upsells below the add-to-cart button
// add upsells below add-to-cart button add_action( 'woocommerce_single_product_summary', 'woocommerce_upsell_display', 40 );
WP Simple Pay: Create WordPress User After Payment (Lite)
Creates a new WordPress user when one-time payment is made with WP Simple Pay Lite.
Remove the Page Title from the Page Header
The following code can be used to remove the title from the page header title area…
Goal Tracking Pixel
This pixel tracks the unit conversions and revenue across all your push campaigns. This helps you…
On Browsing WooCommerce Products
This snippet targets window shoppers and encourages them to add more products to their carts. This…