api, 'register' ) ) ) { return; } wc()->api->register( $version, $init_callback, __DIR__ ); }; add_action( 'woocommerce_loaded', $register_callback );