includes(); add_action( 'wpforms_form_settings_notifications', array( $this, 'form_settings_notifications' ), 8, 1 ); add_action( 'wpforms_form_settings_confirmations', array( $this, 'form_settings_confirmations' ) ); add_action( 'wpforms_builder_enqueues_before', array( $this, 'builder_enqueues' ) ); add_action( 'wpforms_admin_page', array( $this, 'entries_page' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'addon_page_enqueues' ) ); add_action( 'wpforms_admin_page', array( $this, 'addons_page' ) ); add_action( 'wpforms_admin_settings_after', array( $this, 'settings_cta' ), 10, 1 ); add_action( 'wp_ajax_wpforms_lite_settings_upgrade', array( $this, 'settings_cta_dismiss' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueues' ) ); add_filter( 'wpforms_helpers_templates_get_theme_template_paths', [ $this, 'add_templates' ] ); // Entries count logging for WPForms Lite. add_action( 'wpforms_process_entry_save', array( $this, 'update_entry_count' ), 10, 3 ); } /** * Include files. * * @since 1.0.0 */ private function includes() { } /** * Form notification settings, supports multiple notifications. * * @since 1.2.3 * * @param object $settings */ public function form_settings_notifications( $settings ) { $cc = wpforms_setting( 'email-carbon-copy', false ); $from_name_after = apply_filters( 'wpforms_builder_notifications_from_name_after', '' ); $from_email_after = apply_filters( 'wpforms_builder_notifications_from_email_after', '' ); // Handle backwards compatibility. if ( empty( $settings->form_data['settings']['notifications'] ) ) { /* translators: %s - form name. */ $settings->form_data['settings']['notifications'][1]['subject'] = ! empty( $settings->form_data['settings']['notification_subject'] ) ? $settings->form_data['settings']['notification_subject'] : sprintf( esc_html__( 'New %s Entry', 'wpforms-lite' ), $settings->form->post_title ); $settings->form_data['settings']['notifications'][1]['email'] = ! empty( $settings->form_data['settings']['notification_email'] ) ? $settings->form_data['settings']['notification_email'] : '{admin_email}'; $settings->form_data['settings']['notifications'][1]['sender_name'] = ! empty( $settings->form_data['settings']['notification_fromname'] ) ? $settings->form_data['settings']['notification_fromname'] : get_bloginfo( 'name' ); $settings->form_data['settings']['notifications'][1]['sender_address'] = ! empty( $settings->form_data['settings']['notification_fromaddress'] ) ? $settings->form_data['settings']['notification_fromaddress'] : '{admin_email}'; $settings->form_data['settings']['notifications'][1]['replyto'] = ! empty( $settings->form_data['settings']['notification_replyto'] ) ? $settings->form_data['settings']['notification_replyto'] : ''; } $id = 1; echo '
'; echo ''; esc_html_e( 'Notifications', 'wpforms-lite' ); echo ''; echo ''; echo '
'; ?> form_data, esc_html__( 'Notifications', 'wpforms-lite' ), array( 'default' => '1', 'options' => array( '1' => esc_html__( 'On', 'wpforms-lite' ), '0' => esc_html__( 'Off', 'wpforms-lite' ), ), ) ); ?>
form_data, esc_html__( 'Send To Email Address', 'wpforms-lite' ), array( 'default' => '{admin_email}', 'tooltip' => esc_html__( 'Enter the email address to receive form entry notifications. For multiple notifications, separate email addresses with a comma.', 'wpforms-lite' ), 'smarttags' => array( 'type' => 'fields', 'fields' => 'email', ), 'parent' => 'settings', 'subsection' => $id, 'class' => 'email-recipient', ) ); if ( $cc ) : wpforms_panel_field( 'text', 'notifications', 'carboncopy', $settings->form_data, esc_html__( 'CC', 'wpforms-lite' ), array( 'smarttags' => array( 'type' => 'fields', 'fields' => 'email', ), 'parent' => 'settings', 'subsection' => $id, ) ); endif; wpforms_panel_field( 'text', 'notifications', 'subject', $settings->form_data, esc_html__( 'Email Subject', 'wpforms-lite' ), array( /* translators: %s - form name. */ 'default' => sprintf( esc_html__( 'New Entry: %s', 'wpforms-lite' ), $settings->form->post_title ), 'smarttags' => array( 'type' => 'all', ), 'parent' => 'settings', 'subsection' => $id, ) ); wpforms_panel_field( 'text', 'notifications', 'sender_name', $settings->form_data, esc_html__( 'From Name', 'wpforms-lite' ), array( 'default' => sanitize_text_field( get_option( 'blogname' ) ), 'smarttags' => array( 'type' => 'fields', 'fields' => 'name,text', ), 'parent' => 'settings', 'subsection' => $id, 'readonly' => ! empty( $from_name_after ), 'after' => ! empty( $from_name_after ) ? '

' . $from_name_after . '

' : '', ) ); wpforms_panel_field( 'text', 'notifications', 'sender_address', $settings->form_data, esc_html__( 'From Email', 'wpforms-lite' ), array( 'default' => '{admin_email}', 'smarttags' => array( 'type' => 'fields', 'fields' => 'email', ), 'parent' => 'settings', 'subsection' => $id, 'readonly' => ! empty( $from_email_after ), 'after' => ! empty( $from_email_after ) ? '

' . $from_email_after . '

' : '', ) ); wpforms_panel_field( 'text', 'notifications', 'replyto', $settings->form_data, esc_html__( 'Reply-To', 'wpforms-lite' ), array( 'smarttags' => array( 'type' => 'fields', 'fields' => 'email', ), 'parent' => 'settings', 'subsection' => $id, ) ); wpforms_panel_field( 'textarea', 'notifications', 'message', $settings->form_data, esc_html__( 'Message', 'wpforms-lite' ), array( 'rows' => 6, 'default' => '{all_fields}', 'smarttags' => array( 'type' => 'all', ), 'parent' => 'settings', 'subsection' => $id, 'class' => 'email-msg', 'after' => '

' . sprintf( /* translators: %s - {all_fields} Smart Tag. */ esc_html__( 'To display all form fields, use the %s Smart Tag.', 'wpforms-lite' ), '{all_fields}' ) . '

', ) ); ?>
form_data['settings']['confirmations'] ) ) { $settings->form_data['settings']['confirmations'][1]['type'] = ! empty( $settings->form_data['settings']['confirmation_type'] ) ? $settings->form_data['settings']['confirmation_type'] : 'message'; $settings->form_data['settings']['confirmations'][1]['message'] = ! empty( $settings->form_data['settings']['confirmation_message'] ) ? $settings->form_data['settings']['confirmation_message'] : esc_html__( 'Thanks for contacting us! We will be in touch with you shortly.', 'wpforms-lite' ); $settings->form_data['settings']['confirmations'][1]['message_scroll'] = ! empty( $settings->form_data['settings']['confirmation_message_scroll'] ) ? $settings->form_data['settings']['confirmation_message_scroll'] : 1; $settings->form_data['settings']['confirmations'][1]['page'] = ! empty( $settings->form_data['settings']['confirmation_page'] ) ? $settings->form_data['settings']['confirmation_page'] : ''; $settings->form_data['settings']['confirmations'][1]['redirect'] = ! empty( $settings->form_data['settings']['confirmation_redirect'] ) ? $settings->form_data['settings']['confirmation_redirect'] : ''; } $id = 1; echo '
'; esc_html_e( 'Confirmations', 'wpforms-lite' ); echo ''; echo '
'; ?>
form_data, esc_html__( 'Confirmation Type', 'wpforms-lite' ), array( 'default' => 'message', 'options' => array( 'message' => esc_html__( 'Message', 'wpforms-lite' ), 'page' => esc_html__( 'Show Page', 'wpforms-lite' ), 'redirect' => esc_html__( 'Go to URL (Redirect)', 'wpforms-lite' ), ), 'class' => 'wpforms-panel-field-confirmations-type-wrap', 'input_class' => 'wpforms-panel-field-confirmations-type', 'parent' => 'settings', 'subsection' => $id, ) ); wpforms_panel_field( 'textarea', 'confirmations', 'message', $settings->form_data, esc_html__( 'Confirmation Message', 'wpforms-lite' ), array( 'default' => esc_html__( 'Thanks for contacting us! We will be in touch with you shortly.', 'wpforms-lite' ), 'tinymce' => array( 'editor_height' => '200', ), 'input_id' => 'wpforms-panel-field-confirmations-message-' . $id, 'input_class' => 'wpforms-panel-field-confirmations-message', 'parent' => 'settings', 'subsection' => $id, ) ); wpforms_panel_field( 'checkbox', 'confirmations', 'message_scroll', $settings->form_data, esc_html__( 'Automatically scroll to the confirmation message', 'wpforms-lite' ), array( 'input_class' => 'wpforms-panel-field-confirmations-message_scroll', 'parent' => 'settings', 'subsection' => $id, ) ); $p = array(); $pages = get_pages(); foreach ( $pages as $page ) { $depth = count( $page->ancestors ); $p[ $page->ID ] = str_repeat( '-', $depth ) . ' ' . $page->post_title; } wpforms_panel_field( 'select', 'confirmations', 'page', $settings->form_data, esc_html__( 'Confirmation Page', 'wpforms-lite' ), array( 'options' => $p, 'input_class' => 'wpforms-panel-field-confirmations-page', 'parent' => 'settings', 'subsection' => $id, ) ); wpforms_panel_field( 'text', 'confirmations', 'redirect', $settings->form_data, esc_html__( 'Confirmation Redirect URL', 'wpforms-lite' ), array( 'input_class' => 'wpforms-panel-field-confirmations-redirect', 'parent' => 'settings', 'subsection' => $id, ) ); ?>
sprintf( wp_kses( /* translators: %s - WPForms.com docs page URL. */ __( 'You\'ve just turned off notification emails for this form. Since entries are not stored in WPForms Lite, notification emails are recommended for collecting entry details. For setup steps, please see our notification tutorial.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], ] ), 'https://wpforms.com/docs/setup-form-notification-wpforms/' ), ); $strings = apply_filters( 'wpforms_lite_builder_strings', $strings ); wp_localize_script( 'wpforms-builder-lite', 'wpforms_builder_lite', $strings ); } /** * Display upgrade notice at the bottom on the plugin settings pages. * * @since 1.4.7 * * @param string $view */ public function settings_cta( $view ) { if ( get_option( 'wpforms_lite_settings_upgrade', false ) || apply_filters( 'wpforms_lite_settings_upgrade', false ) ) { return; } ?>

array( 'class' => array(), 'aria-hidden' => array(), ), ) ), str_repeat( '', 5 ) ); ?>

Bonus: WPForms Lite users get 50% off regular price, automatically applied at checkout.', 'wpforms-lite' ), array( 'strong' => array(), 'span' => array( 'class' => array(), ), ) ); ?>

Entries



and start collecting entries!

10 items of 1

Name Email Comment or Message Date Actions
David Wells DavidMWells@example.com Vivamus sit amet dolor arcu. Praesent fermentum semper justo, nec scelerisq… July 27, 2017 View | Delete
Jennifer Selzer JenniferLSelzer@example.com Maecenas sollicitudin felis et justo elementum, et lobortis justo vulputate… July 27, 2017 View | Delete
Philip Norton PhilipTNorton@example.com Etiam cursus orci tellus, ut vehicula odio mattis sit amet. Curabitur eros … July 27, 2017 View | Delete
Kevin Gregory KevinJGregory@example.com Cras vel orci congue, tincidunt eros vitae, consectetur risus. Proin enim m… July 27, 2017 View | Delete
John Heiden JohnCHeiden@example.com Fusce consequat dui ut orci tempus cursus. Vivamus ut neque id ipsum tempor… July 27, 2017 View | Delete
Laura Shuler LauraDShuler@example.com In ac finibus erat. Curabitur sit amet ante nec tellus commodo commodo non … July 27, 2017 View | Delete
Walter Sullivan WalterPSullivan@example.com Phasellus semper magna leo, ut porta nibh pretium sed. Interdum et malesuad… July 27, 2017 View | Delete
Gary Austin GaryJAustin@example.com Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet ero… July 27, 2017 View | Delete
Mark Frahm MarkTFrahm@example.com Proin euismod tellus quis tortor bibendum, a pulvinar libero fringilla. Cur… July 27, 2017 View | Delete
Linda Reynolds LindaJReynolds@example.com Cras sodales sagittis maximus. Nunc vestibulum orci quis orci pulvinar vulp… July 27, 2017 View | Delete
Name Email Comment or Message Date Actions
'ActiveCampaign', 'desc' => 'WPForms ActiveCampaign addon lets you add contacts to your account, record events, add notes to contacts, and more.', 'icon' => 'addon-icon-activecampaign.png', ], [ 'name' => 'Authorize.Net', 'desc' => 'WPForms Authorize.Net addon allows you to connect your WordPress site with Authorize.Net to easily collect payments, donations, and online orders.', 'icon' => 'addon-icon-authorize-net.png', ], [ 'name' => 'Aweber', 'desc' => 'WPForms AWeber addon allows you to create AWeber newsletter signup forms in WordPress, so you can grow your email list.', 'icon' => 'addon-icon-aweber.png', ], [ 'name' => 'Campaign Monitor', 'desc' => 'WPForms Campaign Monitor addon allows you to create Campaign Monitor newsletter signup forms in WordPress, so you can grow your email list.', 'icon' => 'addon-icon-campaign-monitor.png', ], [ 'name' => 'Conversational Forms', 'desc' => 'Want to improve your form completion rate? Conversational Forms addon by WPForms helps make your web forms feel more human, so you can improve your conversions. Interactive web forms made easy.', 'icon' => 'addon-icon-conversational-forms.png', ], [ 'name' => 'Custom Captcha', 'desc' => 'WPForms Custom Captcha addon allows you to define custom questions or use random math questions as captcha to combat spam form submissions.', 'icon' => 'addon-icon-captcha.png', ], [ 'name' => 'Drip', 'desc' => 'WPForms Drip addon allows you to create Drip newsletter signup forms in WordPress, so you can grow your email list.', 'icon' => 'addon-icon-drip.png', ], [ 'name' => 'Form Abandonment', 'desc' => 'Unlock more leads by capturing partial entries from your forms. Easily follow up with interested leads and turn them into loyal customers.', 'icon' => 'addon-icon-form-abandonment.png', ], [ 'name' => 'Form Locker', 'desc' => 'WPForms\' Form Locker addon allows you to lock your WordPress forms with various permissions and access control rules including passwords, members-only, specific date / time, max entry limit, and more.', 'icon' => 'addon-icons-locker.png', ], [ 'name' => 'Form Pages', 'desc' => 'Want to improve your form conversions? WPForms Form Pages addon allows you to create completely custom "distraction-free" form landing pages to boost conversions (without writing any code).', 'icon' => 'addon-icon-form-pages.png', ], [ 'name' => 'Form Templates Pack', 'desc' => 'Choose from a huge variety of pre-built templates for every niche and industry, so you can build all kinds of web forms in minutes, not hours.', 'icon' => 'addon-icon-form-templates-pack.png', ], [ 'name' => 'Geolocation', 'desc' => 'WPForms Geolocation addon allows you to collect and store your website visitors geolocation data along with their form submission.', 'icon' => 'addon-icon-geolocation.png', ], [ 'name' => 'GetResponse', 'desc' => 'WPForms GetResponse addon allows you to create GetResponse newsletter signup forms in WordPress, so you can grow your email list.', 'icon' => 'addon-icon-getresponse.png', ], [ 'name' => 'Mailchimp', 'desc' => 'WPForms Mailchimp addon allows you to create Mailchimp newsletter signup forms in WordPress, so you can grow your email list.', 'icon' => 'addon-icon-mailchimp.png', ], [ 'name' => 'Offline Forms', 'desc' => 'WPForms Offline Forms addon allows you to enable offline mode so users can save their entered data and submit when their internet connection is restored.', 'icon' => 'addon-icon-offline-forms.png', ], [ 'name' => 'PayPal Standard', 'desc' => 'WPForms PayPal addon allows you to connect your WordPress site with PayPal to easily collect payments, donations, and online orders.', 'icon' => 'addon-icon-paypal-standard.png', ], [ 'name' => 'Post Submissions', 'desc' => 'WPForms Post Submissions addon makes it easy to have user-submitted content in WordPress. This front-end post submission form allow your users to submit blog posts without logging into the admin area.', 'icon' => 'addon-icon-post-submissions.png', ], [ 'name' => 'Salesforce', 'desc' => 'WPForms Salesforce addon lets you add contacts to your Salesforce CRM account, so you can easily manage leads and relationships.', 'icon' => 'addon-icon-salesforce.png', ], [ 'name' => 'Sendinblue', 'desc' => 'WPForms Sendinblue addon helps you organize your leads, automate your marketing, and engage your subscribers.', 'icon' => 'addon-icon-sendinblue.png', ], [ 'name' => 'Signatures', 'desc' => 'WPForms Signatures addon makes it easy for users to sign your forms. This WordPress signatures plugin will allow your users to sign contracts and other agreements with their mouse or touch screen.', 'icon' => 'addon-icon-signatures.png', ], [ 'name' => 'Stripe', 'desc' => 'WPForms Stripe addon allows you to connect your WordPress site with Stripe to easily collect payments, donations, and online orders.', 'icon' => 'addon-icon-stripe.png', ], [ 'name' => 'Surveys and Polls', 'desc' => 'WPForms Surveys and Polls allows you easily create surveys forms and analyze the data with interactive reports.', 'icon' => 'addon-icons-surveys-polls.png', ], [ 'name' => 'User Journey', 'desc' => "Discover the steps your visitors take before they submit your forms. Right in the WordPress dashboard, you can easily see the content that's driving the most valuable form conversions.", 'icon' => 'addon-icon-user-journey.png', ], [ 'name' => 'User Registration', 'desc' => 'WPForms User Registration addon allows you to create custom WordPress user registration forms.', 'icon' => 'addon-icon-user-registration.png', ], [ 'name' => 'Webhooks', 'desc' => 'The Webhooks addon allows you to send form entry data to secondary tools and external services. No code required, and no need for a third party connector.', 'icon' => 'addon-icon-webhooks.png', ], [ 'name' => 'Zapier', 'desc' => 'WPForms Zapier addon allows you to connect your WordPress forms with over 500+ web apps. The integration possibilities here are just endless.', 'icon' => 'addon-icon-zapier.png', ], ) ?>