프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_response_format |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bulk | |||
$current_theme_id | |||
$log | |||
$themes |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | 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 |
리턴 | array | Named array of theme info used by the API |
protected get_themes ( ) : array | ||
리턴 | array | Public API theme objects |
protected validate_input ( $theme ) : boolean | ||
$theme | ||
리턴 | boolean |
protected validate_themes ( ) : boolean | WP_Error | ||
리턴 | boolean | WP_Error |