About

// Be good, have fun, create things.

10 Snippets
<10 Favourites
<10 Downloads

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…

WP Mail SMTP: when using SMTP mailer - disable SSL verification

This is an insecure approach and you most probably should fix your servers' SSL certificates (they…

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…