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…
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.
WP Simple Pay: Use Custom Field Value as Stripe Payment Description
Use the value of a custom field as the description for the Stripe payment record.
WP Simple Pay: Facebook Payment Conversion Tracking
Execute a script the first and only time a payment confirmation is viewed.
Goal Tracking Pixel
This pixel tracks the unit conversions and revenue across all your push campaigns. This helps you…