nf_sub_table_columns
The Ninja Forms nf sub table columns hook.
Description
Parameters (2)
- 0. $cols (unknown)
- The cols.
- 1. $form_id (unknown)
- The form id.
Usage
- To run the hook, copy the example below.
- $cols = apply_filters( 'nf_sub_table_columns', $cols, $form_id );
- if ( !empty( $cols ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the nf_sub_table_columns callback
- function filter_nf_sub_table_columns( $cols, $form_id ) {
- // make filter magic happen here...
- return $cols;
- };
- // add the filter
- add_filter( 'nf_sub_table_columns', 'filter_nf_sub_table_columns', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'nf_sub_table_columns', 'filter_nf_sub_table_columns', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /deprecated/classes/subs-cpt.php
- return apply_filters( 'nf_sub_table_columns', $cols, $form_id );