Inventory_Presser_REST::response_settings()

Creates the response data for the /settings/ route.

On This Page


Return Return

(array)


Top ↑

Source 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
		);
	}