WC_REST_Orders_V2_Controller::filter_writable_props()protectedWC 1.0

Only return writable props from schema.

Method of the class: WC_REST_Orders_V2_Controller{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->filter_writable_props( $schema );
$schema(array) (required)
Schema.

WC_REST_Orders_V2_Controller::filter_writable_props() code WC 8.7.0

protected function filter_writable_props( $schema ) {
	return empty( $schema['readonly'] );
}