Assign User Role Conditionally in WordPress
This snippet works with WPForms and the User Registration Add-on. It lets you assign user roles…
Add Translated Version Sitemap Entries for a Specific Term
This filter can be used to add Translated Version Sitemap Entries for a Specific Term. You…
How to Restrict Countries Inside Smart Phone Form Fields
/** * Restrict countries inside the Smart Phone form field * * @link https://wpforms.com/how-to-restrict-countries-inside-smart-phone-form-fields/ */ function…
Add A Default Campaign Custom Amount
Return a "default" amount if there isn't one isn't set in the session. Read all notes…
How to Automatically Redirect If User Is Already Logged In
/** * Automatic redirect from login form if a user is already logged in * *…
Change Business Info Email Icon
This filter can be used to change the business info email icon. Replace "/assets/images/email-icon.png" with the…
Add Taxonomy Label to LLMS Term Titles
This snippet prepends the taxonomy label to term titles shown in llms.txt and llms-full.txt.
Hide AlOSEO version number from the front end
This filter can be used to publicly hide the All in One SEO version number.
How to Add BCC to Email Notifications (for all forms)
add_filter( 'wp_mail', function ( $args ) { // Add the BCC email address here $bcc_address =…
Remove the Key Text on Conversational Forms
This CSS will remove the Key Text on all Conversational Forms.
Allow Users Without Editing Permissions to Edit Their Author SEO Details
This filter can be used to allow users that don’t have editing permissions to edit their…
Set a Custom Reply-To Email
This snippet will ensure all emails sent from your site have the same reply-to email address.…
Add aria-label to progress bar to improve WPForms accessibility
/** * Fix WPForms Accessibility: Add aria-label to progress bar. */ function wpf_fix_wpforms_progressbar_aria() { ?>
Change Validation Messages for WPML
When you need to provide multiple different language translations, these messages need to be conditionally different.…
Breadcrumbs - Hide WooCommerce Shop crumb
This filter can be used to hide the WooCommerce Shop page from the breadcrumbs.