Changeset 12994 for trunk/src/bp-core/classes/class-bp-core.php
- Timestamp:
- 07/12/2021 07:48:13 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core.php
r12753 r12994 352 352 parent::register_post_types(); 353 353 } 354 355 /** 356 * Init the Core controllers of the BP REST API. 357 * 358 * @since 9.0.0 359 * 360 * @param array $controllers Optional. See BP_Component::rest_api_init() for 361 * description. 362 */ 363 public function rest_api_init( $controllers = array() ) { 364 $controllers = array( 365 'BP_REST_Components_Endpoint', 366 ); 367 368 parent::rest_api_init( $controllers ); 369 } 370 371 /** 372 * Register the BP Core Blocks. 373 * 374 * @since 9.0.0 375 * 376 * @param array $blocks Optional. See BP_Component::blocks_init() for 377 * description. 378 */ 379 public function blocks_init( $blocks = array() ) { 380 parent::blocks_init( array() ); 381 } 354 382 }
Note: See TracChangeset
for help on using the changeset viewer.