WPForms: display a form under the confirmation message with or without user entered field values.
add_action( 'wpforms_frontend_output_success', static function ( $form_data, $fields, $entry_id ) { unset( $_GET['wpforms_return'], $_POST['wpforms']['id'] ); // If…
WPForms: hide certain sections on a single entry page: notes, log, debug, meta, payment, actions, related, geolocation.
This code removes all sections on a single entry page in the admin area. Method names…
WPForms: new smart tag - Current Date/Time
It's a localized date/time in this format: Y-m-d H:i:s
WPForms: new smart tag - Current Unix Time
Using wp_date() function to output a Unix time where the smart tag is used.
WPForms: add field description in notification HTML and plain text emails
With this snippet, you can add a field description in notification emails that are sent to…
WPForms: add several new smart tags for newly submitted CPT: ID, title and URL.
Mainly useful when the Post Submissions addon is used. Several new smart tags are registered to…
WP Mail SMTP: specify an exact AuthType to connect to a Server.
Some SMTP servers require a very specific AuthType to connect to them in order to send…
WPForms: swap price and option value for payment fields
This snippet makes the option label "$40.00 - Second Choice" instead of "Second Choice - $40.00"…
WPForms: add BCC email header to notification emails
Check the snippet code to apply to all/some form only, plus you will need to modify…
Amit choudhary blogs
Blogger
MemberPress: Exclude Protected Posts from Search Results
Removes any posts from the search results that the current user (or guest) does not have…
MemberPress: Remove Accordion from Courses
Use this snippet if you would like to remove the accordion CSS and JS from the…
Ensure Webfont is Loaded (non-Elementor)
function custom_font_display( $current_value, $font_family, $data ) { return 'swap'; } add_filter( 'font_display', 'custom_font_display', 10, 3 );
Change Registration Email Login URL
Modifies the login URL sent to new users via email.