nf_new_field_capabilities
The Ninja Forms nf new field capabilities hook.
Description
Parameters (1)
- 0. $manage_options (string) =>
'manage_options'
- The manage options.
Usage
- To run the hook, copy the example below.
- $manage_options = apply_filters( 'nf_new_field_capabilities', $manage_options );
- if ( !empty( $manage_options ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the nf_new_field_capabilities callback
- function filter_nf_new_field_capabilities( $manage_options ) {
- // make filter magic happen here...
- return $manage_options;
- };
- // add the filter
- add_filter( 'nf_new_field_capabilities', 'filter_nf_new_field_capabilities', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'nf_new_field_capabilities', 'filter_nf_new_field_capabilities', 10, 1 );
Defined (4)
The filter is defined in the following location(s).
- /deprecated/includes/admin/ajax.php
- if ( ! current_user_can( apply_filters( 'nf_new_field_capabilities', 'manage_options' ) ) )
- if ( ! current_user_can( apply_filters( 'nf_new_field_capabilities', 'manage_options' ) ) )
- if ( ! current_user_can( apply_filters( 'nf_new_field_capabilities', 'manage_options' ) ) )
- if ( ! current_user_can( apply_filters( 'nf_new_field_capabilities', 'manage_options' ) ) )