ninja_forms_success_msg
The Ninja Forms ninja forms success msg hook.
Description
Parameters (1)
- 0. $message (unknown)
- The message.
Usage
- To run the hook, copy the example below.
- $message = apply_filters( 'ninja_forms_success_msg', $message );
- if ( !empty( $message ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the ninja_forms_success_msg callback
- function filter_ninja_forms_success_msg( $message ) {
- // make filter magic happen here...
- return $message;
- };
- // add the filter
- add_filter( 'ninja_forms_success_msg', 'filter_ninja_forms_success_msg', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'ninja_forms_success_msg', 'filter_ninja_forms_success_msg', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /deprecated/includes/deprecated.php
- return apply_filters( 'ninja_forms_success_msg', $message );