Remove Specific Post Type From Public Post Type List

This filter can be used to remove the movie post type from the public post type…

<10

Disable the space key with the special CSS class

This code snippet disables the space key. When a user presses the space key in these…

<10

Sending Form Fields as Smart Tags to Square

The snippet makes Smart Tags usable with Square payments. It allows you to include form fields…

<10

Changing the Name Attribute of a Hidden Field

This code snippet can be used to change the Name attribute of a Hidden field.

<10

Disable Posts Post Type

This snippet hides the default Posts post type from the WordPress admin

<10

Google Tag Manager Header

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

Cathy White
<10

Blog filter

Add a filter for blogs

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…

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…

Estimated reading time

// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…

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 22 23 24 25 26 113