nf_subs_seq_num

Get a submission sequential ID by the post ID.

Description

(string) apply_filters( 'nf_subs_seq_num', (unknown) $this_seq_num, (unknown) $this_sub_id ); 

This function puts together the prefix, sequential number, and postfix

Returns (string)

$seq_num

Parameters (2)

0. $this_seq_num (unknown)
The this seq num.
1. $this_sub_id (unknown)
The this sub id.

Usage

To run the hook, copy the example below.
  1. $this_seq_num = apply_filters( 'nf_subs_seq_num', $this_seq_num, $this_sub_id ); 
  2.  
  3. if ( !empty( $this_seq_num ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the nf_subs_seq_num callback 
  2. function filter_nf_subs_seq_num( $this_seq_num, $this_sub_id ) { 
  3. // make filter magic happen here... 
  4. return $this_seq_num
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'nf_subs_seq_num', 'filter_nf_subs_seq_num', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'nf_subs_seq_num', 'filter_nf_subs_seq_num', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/deprecated/classes/sub.php  
  1. return apply_filters( 'nf_subs_seq_num', $this->seq_num, $this->sub_id );