Display WPForm Entries

/** * Custom shortcode to display WPForms form entries in table view. * * Basic usage: [wpforms_entries_table id=”FORMID”]. * * Possible shortcode attributes: * id (required) Form ID of which to show entries. * user User ID, or “current” to…Continue reading

WPForms Smart Tags – Birth Date

/** * Register the Smart Tag so it will be available to select in the form builder. * * @link https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ */ function wpf_dev_register_smarttag_birth_date( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘birth_date’ ]…Continue reading

WPForms Smart Tags – Grad Year

/** * Register the Smart Tag so it will be available to select in the form builder. * * @link https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ */ function wpf_dev_register_smarttag_grad_year( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘grad_year’ ]…Continue reading

WPForms Smart Tags – User Login

/** * Register the Smart Tag so it will be available to select in the form builder. * * @link https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ */ function wpf_dev_register_smarttag_user_login( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘user_login’ ]…Continue reading

WPForms Smart Tags – Birth Date

/** * Register the Smart Tag so it will be available to select in the form builder. * * @link https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ */ function wpf_dev_register_smarttag_birth_date( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘birth_date’ ]…Continue reading

WPForms: new smart tag – Current Unix Time

// Register the smart tag. add_filter( ‘wpforms_smart_tags’, static function( $tags ) { // Key is the tag, value is the tag name. $tags[‘current_unix_time’] = ‘Current Unix Time’; return $tags; } ); // Replace its value on form render on front-end.…Continue reading