block_core_breadcrumbs_post_type_settings

block_core_breadcrumbs_post_type_settings

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: gutenberg.22.9.0

apply_filters('block_core_breadcrumbs_post_type_settings') is found 1 times:

  • /build/scripts/block-library/breadcrumbs.php line 540
    	 * }
    	 * @param string $post_type The post type slug.
    	 * @param int    $post_id   The post ID.
    	 */
    	$settings = apply_filters( 'block_core_breadcrumbs_post_type_settings', array(), $post_type, $post_id );
    
    	$taxonomy_name = null;
    	$terms         = array();
    
    	// Try preferred taxonomy first if specified.
    	if ( ! empty( $settings['taxonomy'] ) ) {
    

See this hook used in plugins: