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