BlogProController
Corex\Config\Blog\BlogProController · class · Config layer
REST boundary for Blog Pro analytics, editorial workflow, comments, authors, and sharing.
Public API
Section titled “Public API”__construct(BlogProServices $services, BlogProPermissions $permissions)
Section titled “__construct(BlogProServices $services, BlogProPermissions $permissions)”register(): void
Section titled “register(): void”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”hasNonce(WP_REST_Request $request): bool
Section titled “hasNonce(WP_REST_Request $request): bool”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.