[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/ -> bp-core-blocks.php (summary)

Core BP Blocks functions.

File Size: 82 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  bp_support_blocks()
  bp_register_block_components()
  bp_blocks_editor_settings()
  bp_register_block()

Functions
Functions that are not part of a class:

bp_support_blocks()   X-Ref
BuddyPress blocks require WordPress >= 5.0.0 & the BP REST API.

since: 6.0.0
return: bool True if the current installation supports BP Blocks.

bp_register_block_components()   X-Ref
Registers the BP Block components.

since: 6.0.0

bp_blocks_editor_settings( $editor_settings = array()   X-Ref
Filters the Block Editor settings to gather BuddyPress ones into a `bp` key.

since: 6.0.0
param: array $editor_settings Default editor settings.
return: array The editor settings including BP blocks specific ones.

bp_register_block( $args = array()   X-Ref
Register a BuddyPress block type.

since: 6.0.0
param: array $args The registration arguments for the block type.
return: BP_Block   The BuddyPress block type object.



Generated: Fri Sep 25 01:01:33 2020 Cross-referenced by PHPXref 0.7.1