bp_core_remove_authors_taxonomy_for_co_authors_plus( array $taxonomies = array(), array $post_type )
Remove the Author Taxonomies as that is added by Co-Authors Plus which is not used full.
Description
Support Co-Authors Plus
Parameters
- $taxonomies
-
(Optional) Taxonomies which are registered for the requested object or object type
Default value: array()
- $post_type
-
(Required) Post type
Return
(array) Return the names or objects of the taxonomies which are registered for the requested object or object type
Source
File: bp-core/compatibility/bp-incompatible-plugins-helper.php
function bp_core_remove_authors_taxonomy_for_co_authors_plus( $taxonomies = array(), $post_type ) { delete_blog_option( bp_get_root_blog_id(), "bp_search_{$post_type}_tax_author" ); return array_diff( $taxonomies, array( 'author' ) ); }
Changelog
Version | Description |
---|---|
1.1.7 | 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.