Property | Type | Description | |
---|---|---|---|
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
return | array | Of WP_Error or WP_REST_Response. |
protected check_batch_limit ( array $items ) : boolean | WP_Error | ||
$items | array | Request items. |
return | boolean | WP_Error |
protected get_normalized_rest_base ( ) : string | ||
return | string |
public get_public_batch_schema ( ) : array | ||
return | array |
public validate_setting_image_width_field ( $values, array $setting ) : string | WP_Error | ||
$setting | array | |
return | string | WP_Error |