bcn_add_post_type_arg

The Breadcrumb NavXT bcn add post type arg hook.

Description

apply_filters( 'bcn_add_post_type_arg', (unknown) $add_query_arg, (unknown) $type, (unknown) $taxonomy ); 

Parameters (3)

0. $add_query_arg (unknown)
The add query arg.
1. $type (unknown)
The type.
2. $taxonomy (unknown)
The taxonomy.

Usage

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

Defined (1)

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

/class.bcn_breadcrumb_trail.php  
  1. if(apply_filters('bcn_add_post_type_arg', $add_query_arg, $type, $taxonomy))