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(…

<10

Verify Email Domain

During the banned email checks, see if the domain being checked has DNS configured, if not…

Prevent Duplicate Cart Items

Prevents the same item from being added to the cart multiple times.

Continue Shopping Button

Adds a "Continue Shopping" button to the left of the Update/Save Cart buttons on checkout.

File Size Display

After the download content, shows a list of the download files and their sizes

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…

<10

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.

1 35 36 37 38 39 159