woocommerce_api_classes filter-hookWC 1.0

Register available resources for legacy v1 REST API request.

Usage

add_filter( 'woocommerce_api_classes', 'wp_kama_woocommerce_api_classes_filter' );

/**
 * Function for `woocommerce_api_classes` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_api_classes_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

WC_Legacy_API::handle_v1_rest_api_request()
woocommerce_api_classes
WC_Legacy_API::register_resources()
woocommerce_api_classes
WC_Legacy_API::handle_v2_rest_api_request()
woocommerce_api_classes
woocommerce/includes/legacy/class-wc-legacy-api.php 208-216
$api_classes = apply_filters( 'woocommerce_api_classes',
	array(
		'WC_API_Customers',
		'WC_API_Orders',
		'WC_API_Products',
		'WC_API_Coupons',
		'WC_API_Reports',
	)
);
woocommerce/includes/legacy/class-wc-legacy-api.php 160-170
$api_classes = apply_filters( 'woocommerce_api_classes',
	array(
		'WC_API_Coupons',
		'WC_API_Customers',
		'WC_API_Orders',
		'WC_API_Products',
		'WC_API_Reports',
		'WC_API_Taxes',
		'WC_API_Webhooks',
	)
);
woocommerce/includes/legacy/class-wc-legacy-api.php 255-264
$api_classes = apply_filters( 'woocommerce_api_classes',
	array(
		'WC_API_Customers',
		'WC_API_Orders',
		'WC_API_Products',
		'WC_API_Coupons',
		'WC_API_Reports',
		'WC_API_Webhooks',
	)
);

Where the hook is used in WooCommerce

Usage not found.