Limit Uploaded Image Size

Set a max width and height for your image uploads to save space.

Defining SparkPost Mailer Constants

This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…

MemberPress: Bulk Delete All Expired Subscriptions

Running this code snippet will delete all expired and canceled subscriptions in bulk each time the…

Smooth Scrolling

html { scroll-behavior: smooth; }

Untitled Snippet

document.addEventListener("DOMContentLoaded", () => { const canvas = document.getElementById("canvas"); const ctx = canvas.getContext("2d"); const expressionInput = document.getElementById("expressionInput");…

<10

Enable Pinch to Zoom on Mobile Devices

function remove_my_action() { remove_action('wp_head', 'et_add_viewport_meta'); } function dt_et_add_viewport_meta(){ echo ''; } add_action( 'init', 'remove_my_action'); add_action( 'wp_head',…

Paige Craft PRO
<10

Replace WP Logo and the default 'logo' link

Use your custom logo along a replace the default 'logo' link on the login page, don't…

Máscara CPF 2

// Carrega a biblioteca Inputmask var script = document.createElement('script'); script.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.8/jquery.inputmask.min.js"; script.onload = function ()…

Activer automatiquement WooCommerce et les paiements

add_action('init', function () { $extensions = [ 'woocommerce/woocommerce.php', 'woo-payments/woocommerce-payments.php', 'woocommerce-paypal-payments/woocommerce-paypal-payments.php', 'woocommerce-tax/woocommerce-tax.php', 'google-listings-and-ads/google-listings-and-ads.php', // si installé 'kliken-marketing/kliken-marketing.php',…

om.Html.scripts

document.addEventListener('om.Html.scripts', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );

om.Optin.init.submit example

document.addEventListener('om.Optin.init.submit', function(event) { // Grab the email address submitted by the user. const email = event.detail.Optin.data.fields.email;…

1 56 57 58 59 60 124