Blocks
Widget to display the overall count.
Namespace: WebberZone\WFP\Frontend\Blocks
Since: 3.1.0
Source: includes/frontend/blocks/class-blocks.php line 23
Methods
__construct()
Register widget with WordPress.
Line: 28
public function __construct( );
register_blocks()
Registers the block using the metadata loaded from the block.json file.
Behind the scenes, it registers also all assets so they can be enqueued
through the block editor in the corresponding context.
Since: 3.1.0
Line: 40
public function register_blocks( );
render_block() static
Renders the webberzone/followed-posts block on server.
Since: 3.1.0
Line: 58
static public function render_block( $attributes ): string;
| Type | Name | Description |
|---|---|---|
array | $attributes | The block attributes. |
Returns: string — Returns the post content with followed posts added.
enqueue_block_editor_assets() static
Enqueue scripts and styles for the block editor.
Since: 3.1.0
Line: 92
static public function enqueue_block_editor_assets( );