ninja_forms_plugin_settings_advanced
|-------------------------------------------------------------------------- | Rollback to v2.9.x |--------------------------------------------------------------------------.
Description
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.
- $var = apply_filters( 'ninja_forms_plugin_settings_advanced', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the ninja_forms_plugin_settings_advanced callback
- function filter_ninja_forms_plugin_settings_advanced( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 'ninja_forms_plugin_settings_advanced', 'filter_ninja_forms_plugin_settings_advanced', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- return apply_filters( 'ninja_forms_plugin_settings_advanced', array(