Recent

Popular_Posts_Pro class Pro only

Popular Posts Pro block class. It extends the Popular Posts Gutenberg block.

Namespace: WebberZone\Top_Ten\Pro\Blocks
Since: 4.0.0
Source: includes/blocks/class-popular-posts-pro.php line 21

Methods

__construct()

Register widget with WordPress.

Line: 33

public function __construct(  );

register_settings()

Register settings for the block.

Since: 4.0.0
Line: 44

public function register_settings(  );

enqueue_block_editor_assets()

Enqueue scripts and styles for the block editor.

Since: 4.0.0
Line: 63

public function enqueue_block_editor_assets(  );

register_rest_routes()

Register REST routes.

Since: 4.0.0
Line: 98

public function register_rest_routes(  );

permission_check()

Check if the current user has the required permissions.

Since: 4.0.0
Line: 125

public function permission_check(  );

get_block_settings()

Get block settings.

Since: 4.0.0
Line: 136

public function get_block_settings(  ): array;

Returns: array — Block settings.

save_block_settings()

Save block settings.

Since: 4.0.0
Line: 151

public function save_block_settings( $request ): array;
TypeNameDescription
\WP_REST_Request$requestRequest object.

Returns: array — Block settings.

get_styles_for_js()

Get the styles array in a format suitable for JavaScript.

Since: 4.0.0
Line: 169

public function get_styles_for_js(  ): array;

Returns: array — Styles array.