ninja_forms_plugin_settings_advanced

|-------------------------------------------------------------------------- | Rollback to v2.9.x |--------------------------------------------------------------------------.

Description

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

Parameters (1)

0. $var — Optional. (callback) => array('delete_on_uninstall' => array( 'id' => 'delete_on_uninstall', 'type' => 'checkbox', 'label' => __( 'Remove ALL Ninja Forms data upon uninstall?', 'ninja-forms' ), 'desc' => sprintf( __( 'If this box is checked, ALL Ninja Forms data will be removed from the database upon deletion. %sAll form and submission data will be unrecoverable.%s', 'ninja-forms' ), '', '' ), ),'delete_prompt' => array( 'id' => 'delete_prompt', 'type' => 'prompt', 'desc' => __( 'This setting will COMPLETELY remove anything Ninja Forms related upon plugin deletion. This includes SUBMISSIONS and FORMS. It cannot be undone.', 'ninja-forms' ), 'deps' => array( 'delete_on_uninstall' => 'checked' ) ),'disable_admin_notices' => array( 'id' => 'disable_admin_notices', 'type' => 'checkbox', 'label' => __( 'Disable Admin Notices', 'ninja-forms' ), 'desc' => __( 'Never see an admin notice on the dashboard from Ninja Forms. Uncheck to see them again.', 'ninja-forms' ), ),'opinionated_styles' => array( 'id' => 'opinionated_styles', 'type' => 'select', 'label' => __( 'Opinionated Styles', 'ninja-forms' ), 'options' => array( array( 'label' => __( 'None', 'ninja-forms' ), 'value' => '', ), array( 'label' => __( 'Light', 'ninja-forms' ), 'value' => 'light', ), array( 'label' => __( 'Dark', 'ninja-forms' ), 'value' => 'dark', ), ), 'desc' => __( 'Use default Ninja Forms styling conventions.', 'ninja-forms' ), 'value' => '' ),'rollback' => array( 'id' => 'rollback', 'type' => 'html', 'html' => '' . __( 'Rollback', 'ninja-forms' ) . '', 'label' => __( 'Rollback to v2.9.x', 'ninja-forms' ), 'desc' => __( 'Rollback to the most recent 2.9.x release.', 'ninja-forms' ) . '
' . __( 'IMPORTANT: All 3.0 data will be removed.', 'ninja-forms' ) . '
' . __( 'Please export any forms or submissions you do not want to be lost during this process.', 'ninja-forms' ) . '
', ),)
The array.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'ninja_forms_plugin_settings_advanced', $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_plugin_settings_advanced callback 
  2. function filter_ninja_forms_plugin_settings_advanced( $var ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_plugin_settings_advanced', 'filter_ninja_forms_plugin_settings_advanced', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_plugin_settings_advanced', 'filter_ninja_forms_plugin_settings_advanced', 10, 1 ); 

Defined (1)

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

/includes/Config/PluginSettingsAdvanced.php  
  1. return apply_filters( 'ninja_forms_plugin_settings_advanced', array(