Explicit Fixed Width and Height

Explicit Fixed Width and Height for images

Ensure Webfont is Loaded (Elementor)

add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );

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

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…

<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: Remove Decimals

Removes trailing decimals on price outputs. Note: Does not affect Stripe Checkout.

Remove the Page Title from the Page Header

The following code can be used to remove the title from the page header title area…

1 38 39 40 41 42 200