Minify HTML
function minify_html($buffer) { // Remove comments $buffer = preg_replace('//', '', $buffer); // Remove whitespace $buffer =…
Leave Tasty recipe ratings with WP-PostRatings
The Tasty Recipes rating system works with the default WordPress comment form. However, if you use…
increase max file size
a snippet to increase max file size to allow WP staging pro upload
After Checkout Event In WooCommerce
This would stop sending cart abandonment campaigns to your push subscribers in the WooCommerce store as…
Maintain+ Footer Credit
jQuery("footer").append(" Site managed by Maintain+ ")
Adds URL to pages window
add_filter('manage_page_posts_columns', 'my_custom_column', 10); add_action('manage_page_posts_custom_column', 'add_my_custom_column', 10, 2); function my_custom_column($defaults) { $defaults['url'] = 'URL'; return $defaults; }…
add 2 nos
function addNumbers() { // Get input values const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); //…
Add Tag And End Date To Funded Campaign
Sometimes, it can be useful to do something special for campaigns that have been fully funded.
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');
Modify Software Licensing License Structure
Modify the structure of Software Licensing's license keys.
Current Year Shortcode
Adding the option to use the current year [year] shortcode on your website on any website,…
MemberPress: Send Password Reset Email After Subscription Signup
This code can be used to trigger the reset password email to users automatically after users…
Donation Form Email Check
If you need to do manual validation of an email when a donation is being submitted…