bcn_type_archive_post_type

The Breadcrumb NavXT bcn type archive post hook.

Description

apply_filters( 'bcn_type_archive_post_type', (unknown) $this_get_type_string_query_var_wp_taxonomies_type_taxonomy_object_type_0 ); 

Parameters (1)

0. $this_get_type_string_query_var_wp_taxonomies_type_taxonomy_object_type_0 (unknown)
The this get type string query var wp taxonomies type taxonomy object type 0.

Usage

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

Defined (1)

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

/class.bcn_breadcrumb_trail.php  
  1. $post_type = apply_filters('bcn_type_archive_post_type', $this->get_type_string_query_var($wp_taxonomies[$type->taxonomy]->object_type[0]));