Changeset 13140 for trunk/src/bp-core/bp-core-blocks.php
- Timestamp:
- 11/07/2021 05:22:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-blocks.php
r13111 r13140 12 12 13 13 /** 14 * BuddyPress blocks require WordPress >= 5.0.0 &the BP REST API.14 * BuddyPress blocks require the BP REST API. 15 15 * 16 16 * @since 6.0.0 … … 20 20 */ 21 21 function bp_support_blocks() { 22 return bp_is_running_wp( '5.0.0' ) && bp_rest_api_is_available(); 22 /** 23 * Filter here, returning `false`, to completely disable BuddyPress blocks. 24 * 25 * @since 10.0.0 26 * 27 * @param bool $value True if the BP REST API is available. False otherwise. 28 */ 29 return apply_filters( 'bp_support_blocks', bp_rest_api_is_available() ); 23 30 } 24 31
Note: See TracChangeset
for help on using the changeset viewer.