Using Conditional Logic to Change Date Picker Locale
This snippet works with the WPML plugin and only apply date picker locale changes when the…
How to Disable reCAPTCHA for Automated Testing
/** * Disable for automated testing. * * @link https://wpforms.com/developers/how-to-disable-recaptcha-for-automated-testing/ */ // Disable reCAPTCHA assets and…
How to Change the Captcha Theme on Google Checkbox v2 reCAPTCHA
/** * Change the captcha theme for the Google Checkbox v2 reCAPTCHA * * @link https://wpforms.com/developers/how-to-change-the-captcha-theme-on-google-checkbox-v2-recaptcha/…
How to Perform Field Comparisons Within Your WPForms
/** * Perform Field Comparisons * * @link https://wpforms.com/developers/how-to-perform-field-comparisons-within-your-wpforms/ */ function wpf_dev_compare_fields( $fields, $entry, $form_data )…
Use a custom ID prefix in Table of Content block
This snippet can be used to add a custom ID prefix for the Table of Content…
Dynamically Displaying Years in Your Forms
/** * Dynamically display years in the forms * * @link https://wpforms.com/developers/how-to-dynamically-display-years-in-your-forms/ */ function wpf_dev_dynamic_school_year( )…
How to Store Field Values in the WPForms Entry
/** * Show values in Dropdown, checkboxes, and Multiple Choice. */ add_action( 'wpforms_fields_show_options_setting', '__return_true' ); /**…
Skip Unwanted 404 Logs
This snippet will successfully prevent AIOSEO from logging 404 errors for the specified URLs.
Add User Dashboard Menu
Include the User Dashboard menu at the top of all pages that are included in the…
Remove Donation Form Fields
This example shows how to remove fields from the donation form.
Add Campaigns Menu
Add a top-level Campaigns menu tab to the menu in the WordPress dashboard.
Remove Google Fonts (Elementor)
add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );
Enable HTTP Strict Transport Security (HSTS) in WordPress
The provided code snippet is a WordPress function that enables a WordPress site's HTTP Strict Transport…
Disable Custom Link Format of AIOSEO in the Block and Classic Editors
This snippet can be used to disable the custom link format that All in One SEO…
Increase the Number of Posts Imported Per Batch from Rank Math Plugin
This filter can be used to increase the default number of posts imported per batch from…