Inventory_Presser_REST::response_settings()

Creates the response data for the /settings/ route.


Return

(array)


Source

File: includes/class-rest.php

	public function response_settings() {
		$public_keys = array(
			'use_carfax',
		);

		return array_filter(
			INVP::settings(),
			function ( $k ) use ( $public_keys ) {
				return in_array( $k, $public_keys, true );
			},
			ARRAY_FILTER_USE_KEY
		);
	}