Skip to content
Corex

BlogProController

Corex\Config\Blog\BlogProController · class · Config layer

REST boundary for Blog Pro analytics, editorial workflow, comments, authors, and sharing.

__construct(BlogProServices $services, BlogProPermissions $permissions)

Section titled “__construct(BlogProServices $services, BlogProPermissions $permissions)”

allowed(WP_REST_Request $request): bool|WP_Error

Section titled “allowed(WP_REST_Request $request): bool|WP_Error”

The base permission, for the routes about no one post: the authors table.

mayWorkOnPost(WP_REST_Request $request): bool|WP_Error

Section titled “mayWorkOnPost(WP_REST_Request $request): bool|WP_Error”

mayMovePost(WP_REST_Request $request): bool|WP_Error

Section titled “mayMovePost(WP_REST_Request $request): bool|WP_Error”

mayActOnComment(WP_REST_Request $request): bool|WP_Error

Section titled “mayActOnComment(WP_REST_Request $request): bool|WP_Error”

analytics(WP_REST_Request $request): WP_REST_Response

Section titled “analytics(WP_REST_Request $request): WP_REST_Response”

shareControls(WP_REST_Request $request): WP_REST_Response

Section titled “shareControls(WP_REST_Request $request): WP_REST_Response”

shareClick(WP_REST_Request $request): WP_REST_Response

Section titled “shareClick(WP_REST_Request $request): WP_REST_Response”

Counts nothing until reading data is collected (spec 112, FR-027): nothing calls it, and an open address that writes a row per call is a cost with no reader.

transition(WP_REST_Request $request): WP_REST_Response

Section titled “transition(WP_REST_Request $request): WP_REST_Response”

commentQueue(WP_REST_Request $request): WP_REST_Response

Section titled “commentQueue(WP_REST_Request $request): WP_REST_Response”

moderateComment(WP_REST_Request $request): WP_REST_Response

Section titled “moderateComment(WP_REST_Request $request): WP_REST_Response”

authorAnalytics(WP_REST_Request $request): WP_REST_Response

Section titled “authorAnalytics(WP_REST_Request $request): WP_REST_Response”