Change Validation Messages for Required Fields - WPML
Below is an example that changes the required field validation message depending on the language WPML…
Add Picture Field To Donation Form
A picture field is added to the donation form, allowing donors to upload an image as…
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…
Copyright & Current Year Shortcodes
Add this snippet to the functions.php file in your theme or plugin. Type [year] in any…
Hide unnecessary roles
Masque les roles qui ne doivent pas être utilisés dans les filtres utilisateurs
Unhook Default Charitable Template Functions
In this example, we're going to remove the donor count from the campaign page, but you…
Template: After Order Actions
This is a template that can be used to hook into the `edd_after_order_actions` hook, allowing developers…
Add custom CSS in the Admin
Use this snippet to add custom styles in the WordPress admin head. Add your CSS code…
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(…
Goal Tracking Pixel
This pixel tracks the unit conversions and revenue across all your push campaigns. This helps you…
Blog filter
Add a filter for blogs
Add WooCommerce upsells below the add-to-cart button
// add upsells below add-to-cart button add_action( 'woocommerce_single_product_summary', 'woocommerce_upsell_display', 40 );
Show WooCommerce Cart and Checkout on the Same page Free No Plugin
This post outlines the code implementation for creating a streamlined checkout experience by merging the cart…