bp_is_post_type_feed_enable( string $post_type, bool $default = false )
Checks if post type feed is enabled.
Description
Parameters
- $post_type
-
(string) (Required) Post Type
- $default
-
(bool) (Optional) Fallback value if not found in the database. Default: false.
Default value: false
Return
(bool) Is post type feed enabled or not
Source
File: bp-core/bp-core-options.php
function bp_is_post_type_feed_enable( $post_type, $default = false ) { return (bool) apply_filters( 'bp_is_post_type_feed_enable', (bool) get_option( "bp-feed-custom-post-type-$post_type", $default ) ); }
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.