Disable default WordPress image sizes

// Disable default WordPress image sizes add_filter('intermediate_image_sizes', '__return_empty_array'); // Disable large scaled image size add_filter('big_image_size_threshold', '__return_false');…

Display the stock availability for all product types in WooCommerce archive pages

Learn how to add Availability label ? in your WooCommerce website. This will help to notify…

MemberPress: ACF - Exclude Protected Posts From ACF Repeater Field

The code snippet ensures that protected MemberPress posts are excluded from custom queries used in Advanced…

Limit user posts

A settings page to set the number of posts all users can create

<10

Custom Countries

Illustrates how to add a custom list of countries This list will be used anywhere EDD…

Google Tag Manager - Head

(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= 'https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXXXX'+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXXXXX');

Add Security Info to Checkout

Replace the image on checkout with the proper image for your SSL certificate.

MemberPress: Disable Admin Password Lost/Changed Email

Disable the MemberPress Admin email notification for password lost/changed.

om-nextjs.js

import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…

Body on Scroll

;(function ($) { $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 5) { $("body").addClass("scroll-500"); $(".tm-header").removeClass("uk-blend-difference");…

JavaScript for Craft Picker

// Menu Toggle function toggleMenu() { const mobileNav = document.querySelector('.mobile-nav'); mobileNav.classList.toggle('active'); } // Close Menu on…

1 … 58 59 60 61 62 … 242