ninja_forms_form_settings_basic

The Ninja Forms ninja forms form settings basic hook.

Description

apply_filters( 'ninja_forms_form_settings_basic', (callback) $var ); 

Parameters (1)

0. $var — Optional. (callback) => array( 'page' => 'ninja-forms', 'tab' => 'form_settings', 'slug' => 'basic_settings', 'title' => __( 'Display', 'ninja-forms' ), 'state' => 'closed', 'settings' => array( array( 'name' => 'form_title', 'type' => 'text', 'label' => __( 'Form Title', 'ninja-forms' ), ), array( 'name' => 'show_title', 'type' => 'checkbox', 'label' => __( 'Display Form Title', 'ninja-forms' ), ), array( 'name' => 'append_page', 'type' => 'select', 'desc' => '', 'label' => __( 'Add form to this page', 'ninja-forms' ), 'display_function' => '', 'help' => '', 'options' => $append_array, ), array( 'name' => 'ajax', 'type' => 'checkbox', 'desc' => '', 'label' => __( 'Submit via AJAX (without page reload)?', 'ninja-forms' ), 'display_function' => '', 'help' => '', ), array( 'name' => 'clear_complete', 'type' => 'checkbox', 'desc' => '', 'label' => __( 'Clear successfully completed form?', 'ninja-forms' ), 'display_function' => '', 'desc' => __( 'If this box is checked, Ninja Forms will clear the form values after it has been successfully submitted.', 'ninja-forms' ), 'default_value' => 1, ), array( 'name' => 'hide_complete', 'type' => 'checkbox', 'desc' => '', 'label' => __( 'Hide successfully completed form?', 'ninja-forms' ), 'display_function' => '', 'desc' => __( 'If this box is checked, Ninja Forms will hide the form after it has been successfully submitted.', 'ninja-forms' ), 'default_value' => 1, ), ), )
The array.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'ninja_forms_form_settings_basic', $var ); 
  2.  
  3. if ( !empty( $var ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ninja_forms_form_settings_basic callback 
  2. function filter_ninja_forms_form_settings_basic( $var ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_form_settings_basic', 'filter_ninja_forms_form_settings_basic', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_form_settings_basic', 'filter_ninja_forms_form_settings_basic', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/deprecated/includes/admin/pages/ninja-forms/tabs/form-settings/form-settings.php  
  1. $args = apply_filters( 'ninja_forms_form_settings_basic', array(