Méthode | Description | |
---|---|---|
validate_service_schemas ( $service_schemas ) : WP_Error | true | Validates the overall passed services object (all service types and all services therein) |
Méthode | Description | |
---|---|---|
validate_service_schema ( string $service_type, integer $service_counter, $service_schema ) : WP_Error | true | Validates a particular service schema, especially the parts of the service that WC relies on like id, method_title, method_description, etc | |
validate_service_schema_settings ( string $service_id, object $service_settings ) : WP_Error | true | Validates a particular service's service settings schema, especially the parts of the service settings that WC relies on like type, required and properties | |
validate_service_settings_required_properties ( string $service_id, object $service_settings_properties ) : WP_Error | true | Validates a particular service's schema's required properties, especially the parts of the properties that WC relies on and title |
protected validate_service_schema ( string $service_type, integer $service_counter, $service_schema ) : WP_Error | true | ||
$service_type | string | |
$service_counter | integer | |
Résultat | WP_Error | true |
protected validate_service_schema_settings ( string $service_id, object $service_settings ) : WP_Error | true | ||
$service_id | string | |
$service_settings | object | |
Résultat | WP_Error | true |
public validate_service_schemas ( $service_schemas ) : WP_Error | true | ||
Résultat | WP_Error | true |
protected validate_service_settings_required_properties ( string $service_id, object $service_settings_properties ) : WP_Error | true | ||
$service_id | string | |
$service_settings_properties | object | |
Résultat | WP_Error | true |