WordPress at a glance
filter is not described

woocommerce_api_enabled filter-hook . WC 1.0

the API is enabled by default

Usage

add_filter( 'woocommerce_api_enabled', 'filter_function_name_6182', 10, 2 );
function filter_function_name_6182( $true, $that ){
	// filter...

	return $true;
}
$true
-
$that
-

Where the hook is called

WC_API_Server::serve_request()
woocommerce_api_enabled
woocommerce/includes/legacy/api/v1/class-wc-api-server.php 211
if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {
woocommerce/includes/legacy/api/v2/class-wc-api-server.php 209
if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {
woocommerce/includes/legacy/api/v3/class-wc-api-server.php 209
if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {

Where in WP core the hook is used WooCommerce

Usage not found.