프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
메소드 | 설명 | |
---|---|---|
batch_items ( WP_REST_Request $request ) : array | Bulk create, update and delete items. | |
get_public_batch_schema ( ) : array | Get the batch schema, conforming to JSON Schema. | |
validate_setting_checkbox_field ( string $value, array $setting ) : string | WP_Error | Validate checkbox based settings. | |
validate_setting_image_width_field ( $values, array $setting ) : string | WP_Error | Validate image_width based settings. | |
validate_setting_multiselect_field ( array $values, array $setting ) : string | WP_Error | Validate multiselect based settings. | |
validate_setting_radio_field ( string $value, array $setting ) : string | WP_Error | Validate radio based settings. | |
validate_setting_select_field ( string $value, array $setting ) : string | WP_Error | Validate select based settings. | |
validate_setting_text_field ( string $value, array $setting ) : string | Validate a text value for a text based setting. | |
validate_setting_textarea_field ( string $value, array $setting ) : string | Validate textarea based settings. |
메소드 | 설명 | |
---|---|---|
add_additional_fields_schema ( array $schema ) | Add the schema from additional fields to an schema array. | |
add_meta_query ( array $args, array $meta_query ) : array | Add meta query. | |
check_batch_limit ( array $items ) : boolean | WP_Error | Check batch limit. | |
get_normalized_rest_base ( ) : string | Get normalized rest base. |
protected add_additional_fields_schema ( array $schema ) | ||
$schema | array | Schema array. |
public batch_items ( WP_REST_Request $request ) : array | ||
$request | WP_REST_Request | Full details about the request. |
리턴 | array | Of WP_Error or WP_REST_Response. |
protected check_batch_limit ( array $items ) : boolean | WP_Error | ||
$items | array | Request items. |
리턴 | boolean | WP_Error |
protected get_normalized_rest_base ( ) : string | ||
리턴 | string |
public get_public_batch_schema ( ) : array | ||
리턴 | array |
public validate_setting_image_width_field ( $values, array $setting ) : string | WP_Error | ||
$setting | array | |
리턴 | string | WP_Error |