[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

Core BP Blocks functions.

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

Defines 11 functions

  bp_support_blocks()
  bp_register_block_components()
  bp_register_block_assets()
  bp_blocks_editor_settings()
  bp_block_init_editor_settings_filter()
  bp_blocks_preload_paths()
  bp_register_block()
  bp_blocks_get_widget_block_classnames()
  bp_widget_block_dynamic_classname()
  bp_blocks_get_login_widget_registration_link()
  bp_block_render_login_form_block()

Functions
Functions that are not part of a class:

bp_support_blocks()   X-Ref
BuddyPress blocks require the BP REST API.

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

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

since: 6.0.0
since: 9.0.0 Adds a dependency to `wp-server-side-render` if WP >= 5.3.

bp_register_block_assets()   X-Ref
Registers the BP Block Assets.

since: 9.0.0

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

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

bp_block_init_editor_settings_filter()   X-Ref
Select the right `block_editor_settings` filter according to WP version.

since: 8.0.0

bp_blocks_preload_paths( $paths = array()   X-Ref
Preload the Active BuddyPress Components.

return: string[] The Block Editors preload paths.
param: string[] $paths The Block Editors preload paths.
since: 9.0.0

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

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

bp_blocks_get_widget_block_classnames( $block_name = '' )   X-Ref
Gets a Widget Block list of classnames.

return: array The list of widget classnames for the Block.
param: string $block_name The Block name.
since: 9.0.0

bp_widget_block_dynamic_classname( $classname, $block_name )   X-Ref
Make sure the BP Widget Block classnames are included into Widget Blocks.

return: string The classname to be used in the block widget's container HTML.
param: string $classname The classname to be used in the block widget's container HTML.
param: string $block_name The name of the block.
since: 9.0.0

bp_blocks_get_login_widget_registration_link( $content = '', $args = array()   X-Ref
Create a link to the registration form for use on the bottom of the login form widget.

return: string         HTML output.
param: string $content Content to display. Default empty.
param: array  $args    Array of login form arguments.
since: 9.0.0

bp_block_render_login_form_block( $attributes = array()   X-Ref
Callback function to render the BP Login Form.

return: string           HTML output.
param: array $attributes The block attributes.
since: 9.0.0



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1