Make Product Non Purchasable for Wholesale Customer if Product Stock is Less Than Certain Amount
This snippet will allow you to make a product unavailable for purchase by wholesale customers if…
Remove hyperlink from name field
add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/
Disable WP Texturize
Disable WP Texturize Everywhere
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
Removing the Redux Demo Mode Notice
Copyright © author Link: https://devs.redux.io/guides/basics/removing-demo-mode-notice.html The Redux Framework plugin ships with a sample config. This permits…
Customize the error message shown on the WPForms Password Reset form when the reset link is invalid or expired
/** * Customize the error message shown on the WPForms Password Reset form * when the…
Onemoguci mail provjeru - WP Forms
Da mi ne izbacuje prijedolge o ispravnim mail adresama. Tipa kada upišem [email protected] dale mi prijedlog…
Site-Wide Hero Optimisation
/** * Promote the hero image (LCP) site-wide: * - fetchpriority="high", loading="eager" * - remove lazy…
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
Disable WordPress auto-update emails (plugins/themes/core)
// Disable auto-update emails. add_filter( 'auto_core_update_send_email', '__return_false' ); // Disable auto-update emails for plugins. add_filter( 'auto_plugin_update_send_email',…
Prevent Tasty Links inside Tasty Recipes
Prefer to keep your recipe cards clear of automatic links from your Tasty Links keywords? No…
Disable filter added by the Caddy plugin that hides WooCommerce shipping rates
Removes the filter that hides other WooCommerce shipping rates when free shipping is available, allowing all…
Mobile Menu Toggle Script
document.addEventListener('DOMContentLoaded', function() { const menuToggle = document.querySelector('.menu-toggle'); // Check if the toggle button exists if (menuToggle)…
Test snippet
This is just for testing -- nice that there is a description area.