API / Minn\Runtime / UserStylesPost

UserStylesPost final class

Minn\Runtime\UserStylesPost · public/minn/src/Minn/Runtime/UserStylesPost.php · 53 lines

A theme's user styles post as WordPress's theme.json resolver finds and makes it: the newest wp_global_styles post tied to the theme by its wp_theme term, made for the active theme when it is missing.

Public

staticdata(mixed $theme, mixed $createPost = false, mixed $statuses = array ( 0 => 'publish', )): array#

A theme's user styles post as an array (WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles), made when asked and missing for the active theme; [] when there is none.

@return array<string, mixed>
staticid(): int#

The active theme's user styles post id (WP_Theme_JSON_Resolver::get_user_global_styles_post_id), the post made when it is missing.