bp_is_search_post_type_taxonomy_enable( $taxonomy,  $post_type )

Checks if post type Taxonomy search is enabled.

Description

Parameters

$post_type

(Required) string post type name

$taxonomy

(Required) string taxonomy name

Return

(bool) Is post type Taxonomy search enabled or not

Source

File: bp-search/bp-search-settings.php

function bp_is_search_post_type_taxonomy_enable( $taxonomy, $post_type ) {
	return (bool) apply_filters( 'bp_is_search_post_type_taxonomy_enable', (bool) get_option( "bp_search_{$post_type}_tax_{$taxonomy}" ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.