Inventory_Presser_REST::response_settings()
Creates the response data for the /settings/ route.
Return Return
(array)
Source Source
File: includes/class-rest.php
public function response_settings() {
if ( ! class_exists( 'INVP' ) ) {
return array();
}
$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
);
}
Expand full source codeCollapse full source codeView on Github