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