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=
Add Picture Field To Donation Form
A picture field is added to the donation form, allowing donors to upload an image as…
Changing sublabels for Email Field on a Single Form
This snippet is used to change sublabel for Email field on a specific form. Be sure…
Remove Default jQuery
// Remove default WordPress jquery wp_deregister_script( 'jquery' ); //Remove jquery migrate add_action( 'wp_default_scripts', 'remove_jquery_migrate' ); function…
Set a specific language for Cloudflare Turnstile.
/** * Set a specific language for Cloudflare Turnstile. * * @link https://wpforms.com/developers/how-to-set-the-language-for-cloudflare-turnstile */ function wpf_add_turnstile_language_script()…
Verify Email Domain
During the banned email checks, see if the domain being checked has DNS configured, if not…
WP Simple Pay: Custom Subscription Price Option Labels
Change the price option labels that are output in the price option selector. Changes the output…
Copyright & Current Year Shortcodes
Add this snippet to the functions.php file in your theme or plugin. Type [year] in any…
Estimated reading time
// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…
Add Custom Dynamic Variables
The Total theme allows you to use "Dynamic Variables" in various element text fields such as…
Hide unnecessary roles
Masque les roles qui ne doivent pas être utilisés dans les filtres utilisateurs
Explicit Fixed Width and Height
Explicit Fixed Width and Height for images
Move Jump to Recipe above featured image in Genesis
/** * Ensures the "Jump to Recipe" button is added above the featured image. */ add_action(…
Blog filter
Add a filter for blogs
Template: After Order Actions
This is a template that can be used to hook into the `edd_after_order_actions` hook, allowing developers…