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…
Remove Customer Role From Excluded Roles
This filter can be used to remove the customer role from the excluded roles
Disable Posts Post Type
This snippet hides the default Posts post type from the WordPress admin
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=
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…
Add PDF to purchase receipt
Attaches a PDF to the email customers receive when they purchase
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…
Estimated reading time
// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…
WP Simple Pay: Use Payment Form Description as Payment Description
Always use the payment form's "Description" as the Stripe payment description. By default WP Simple Pay…
WP Simple Pay: Remove Decimals
Removes trailing decimals on price outputs. Note: Does not affect Stripe Checkout.