bp_core_get_active_custom_post_type_feed()
Returns the active custom post type activity feed CPT array.
Description
Return
(array)
Source
File: bp-core/bp-core-functions.php
function bp_core_get_active_custom_post_type_feed() { // Get site-wide all the CPT array. $custom_post_types = bp_get_option( 'bp_core_admin_get_active_custom_post_type_feed', array()); $cpt_arr = array(); foreach ( $custom_post_types as $single_post ) { // check custom post type feed is enabled from the BuddyBoss > Settings > Activity > Custom Post Types metabox settings. $enabled = bp_is_post_type_feed_enable( $single_post ); // If enabled put in $cpt_arr if ( $enabled ) { $cpt_arr[] = $single_post; } } return $cpt_arr; }
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.