WordPress at a glance
action is not described

rest_api_init action-hook . WC 1.0

Load the controllers if accessing outside the REST API.

Usage

add_action( 'rest_api_init', 'action_function_name_2025' );
function action_function_name_2025(){
	// action...
}

Where the hook is called

ReportCSVExporter::map_report_controller()
rest_api_init
rest_get_server()
rest_api_init
WC_CLI_Runner::after_wp_load()
rest_api_init
wp-includes/rest-api.php 479
do_action( 'rest_api_init', $wp_rest_server );
woocommerce/includes/cli/class-wc-cli-runner.php 59
do_action( 'rest_api_init', $wp_rest_server );

Where in WC core the hook is used

includes/class-wc-api.php 29
add_action( 'rest_api_init', array( $this, 'register_wp_admin_settings' ) );
packages/woocommerce-admin/src/API/Init.php 26
add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
packages/woocommerce-admin/src/Loader.php 75
add_action( 'rest_api_init', array( __CLASS__, 'register_user_data' ) );
packages/woocommerce-blocks/src/RestApi.php 21
add_action( 'rest_api_init', array( __CLASS__, 'register_rest_routes' ), 10 );
packages/woocommerce-rest-api/src/Server.php 31
add_action( 'rest_api_init', array( $this, 'register_rest_routes' ), 10 );