bcn_show_cpt_private

The Breadcrumb NavXT bcn show cpt private hook.

Description

apply_filters( 'bcn_show_cpt_private', (unknown) $post_type_public, (string) $post_type_name ); 

Parameters (2)

0. $post_type_public (unknown)
The post type public.
1. $post_type_name (string)
The post type name.

Usage

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

Defined (4)

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

/class.bcn_network_admin.php  
  1. if(!apply_filters('bcn_show_cpt_private', $post_type->public, $post_type->name)) 
  1. if(!apply_filters('bcn_show_cpt_private', $post_type->public, $post_type->name)) 
/class.bcn_admin.php  
  1. if(!apply_filters('bcn_show_cpt_private', $post_type->public, $post_type->name)) 
  1. if(!apply_filters('bcn_show_cpt_private', $post_type->public, $post_type->name))