bcn_show_cpt_private

This filter is applied within the bcn_admin class in the admin_page() function. This filter is intended to allow users to override the default behavior of Breadcrumb NavXT to hide settings for non-public post types. This filter was introduced in version 4.3. It receives two parameters:

  • $public(boolean)(required) Whether or not the post type is a publicly visible post type as represented by the public property of the post type object
  • $name(string)(optional) The name of the post type