Property | Type | Description | |
---|---|---|---|
$_response_format |
Property | Type | Description | |
---|---|---|---|
$bulk | |||
$current_theme_id | |||
$log | |||
$themes |
Method | Description | |
---|---|---|
check_query_args ( ) : boolean | WP_Error | Checks the query_args our collection endpoint was passed to ensure that it's in the proper bounds. | |
format_theme ( object $theme ) : array | Format a theme for the public API | |
get_themes ( ) : array | Format a list of themes for public display, using the supplied offset and limit args | |
result ( ) | ||
validate_input ( $theme ) : boolean | Walks through either the submitted theme or list of themes and creates the global array | |
validate_themes ( ) : boolean | WP_Error | Walks through submitted themes to make sure they are valid |
protected check_query_args ( ) : boolean | WP_Error | ||
return | boolean | WP_Error | a WP_Error object if the args are out of bounds, true if things are good. |
protected format_theme ( object $theme ) : array | ||
$theme | object | WP_Theme object |
return | array | Named array of theme info used by the API |
protected get_themes ( ) : array | ||
return | array | Public API theme objects |
protected validate_input ( $theme ) : boolean | ||
$theme | ||
return | boolean |
protected validate_themes ( ) : boolean | WP_Error | ||
return | boolean | WP_Error |