init(); } } add_action( 'woocommerce_loaded', function() { if ( is_callable( array( wc()->api, 'register' ) ) ) { // @internal When bumping the version remember to update the function names below. wc()->api->register( '1.1.0', 'wc_rest_api_1_dot_1_dot_0' ); } } );