bcn_pick_post_term
The Breadcrumb NavXT bcn pick post term hook.
Description
apply_filters( 'bcn_pick_post_term', (unknown) $this_pick_post_term_id_type_taxonomy, (unknown) $id, (unknown) $type, (unknown) $taxonomy );
Parameters (4)
- 0. $this_pick_post_term_id_type_taxonomy (unknown)
- The this pick post term id type taxonomy.
- 1. $id (unknown)
- The id.
- 2. $type (unknown)
- The type.
- 3. $taxonomy (unknown)
- The taxonomy.
Usage
- To run the hook, copy the example below.
- $this_pick_post_term_id_type_taxonomy = apply_filters( 'bcn_pick_post_term', $this_pick_post_term_id_type_taxonomy, $id, $type, $taxonomy );
- if ( !empty( $this_pick_post_term_id_type_taxonomy ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bcn_pick_post_term callback
- function filter_bcn_pick_post_term( $this_pick_post_term_id_type_taxonomy, $id, $type, $taxonomy ) {
- // make filter magic happen here...
- return $this_pick_post_term_id_type_taxonomy;
- };
- // add the filter
- add_filter( 'bcn_pick_post_term', 'filter_bcn_pick_post_term', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bcn_pick_post_term', 'filter_bcn_pick_post_term', 10, 4 );
Defined (1)
The filter is defined in the following location(s).
- /class.bcn_breadcrumb_trail.php
- $term = apply_filters('bcn_pick_post_term', $this->pick_post_term($id, $type, $taxonomy), $id, $type, $taxonomy);