How to Automatically Redirect If User Is Already Logged In
/** * Automatic redirect from login form if a user is already logged in * *…
Hide AlOSEO version number from the front end
This filter can be used to publicly hide the All in One SEO version number.
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…
Adding a Clear Button to Reset All Fields in Your Form
This code snippet will clear all input fields at once.
Change Validation Messages for WPML
When you need to provide multiple different language translations, these messages need to be conditionally different.…
How to Add BCC to Email Notifications (for all forms)
add_filter( 'wp_mail', function ( $args ) { // Add the BCC email address here $bcc_address =…
Set max-video-preview to 0
This snippet sets max-video-preview robots meta tag to 0
Remove the crumb for the ‘uncategorized’ category
This snippet can be used to remove the crumb for the ‘uncategorized’ category
Focused Form Fields
This CSS snippet will make your fields focused on click.
How to Move to the Next Page Automatically
/** * Navigate to the next page automatically * * @link https://wpforms.com/developers/how-to-move-to-the-next-page-automatically/ */ function wpf_dev_automatic_next_page( )…
Removing the Header Image From Notification Emails of Specific Forms
This code snippet hides the header image in notification emails for only a few forms instead…
Prevent Canonical URL tag output on Posts
This snippet can be used to prevent AIOSEO from outputting the Canonical URL tag on posts
Change OG Title of a Specific Post
This filter can be used to change the OG Title of a Specific Post with ID…
How to Center a Form
This code centers the form using margin: 0 auto and sets a maximum width of 500px.
Remove BreadcrumbList Schema
This snippet removes the BreadcrumbList Schema