Popular_Authors_Blocks
Registers Popular Authors blocks.
Namespace: WebberZone\Top_Ten\Pro\Blocks
Since: 4.4.0
Source: includes/blocks/class-popular-authors-blocks.php line 20
Methods
__construct()
Register hooks.
Line: 25
public function __construct( );
register_blocks()
Register the blocks and their server-side render callbacks.
Line: 32
public function register_blocks( );
render_authors()
Render the Popular Authors block.
Line: 49
public function render_authors( $attributes ): string;
| Type | Name | Description |
|---|---|---|
array | $attributes | Block attributes. |
Returns: string
render_author_posts()
Render the Popular Posts by Author block.
Line: 82
public function render_author_posts( $attributes ): string;
| Type | Name | Description |
|---|---|---|
array | $attributes | Block attributes. |
Returns: string