woocommerce_api_loaded

woocommerce_api_loaded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_loaded') is found 3 times:

  • /includes/legacy/class-wc-legacy-api.php line 252
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
        include_once dirname( __FILE__ ) . '/api/v3/class-wc-api-taxes.php';
        include_once dirname( __FILE__ ) . '/api/v3/class-wc-api-webhooks.php';
     
        // Allow plugins to load other response handlers or resource classes.
        do_action( 'woocommerce_api_loaded' );
    }
     
    /**
     * Register available API resources.
     *
     * @since 2.1
  • /includes/legacy/class-wc-legacy-api.php line 308
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    include_once dirname( __FILE__ ) . '/api/v1/class-wc-api-products.php';
    include_once dirname( __FILE__ ) . '/api/v1/class-wc-api-reports.php';
     
    // Allow plugins to load other response handlers or resource classes.
    do_action( 'woocommerce_api_loaded' );
     
    $this->server = new WC_API_Server( $GLOBALS['wp']->query_vars['wc-api-route'] );
     
    // Register available resources for legacy v1 REST API request.
    $api_classes = apply_filters(
        'woocommerce_api_classes',
  • /includes/legacy/class-wc-legacy-api.php line 356
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    include_once dirname( __FILE__ ) . '/api/v2/class-wc-api-reports.php';
    include_once dirname( __FILE__ ) . '/api/v2/class-wc-api-webhooks.php';
     
    // allow plugins to load other response handlers or resource classes.
    do_action( 'woocommerce_api_loaded' );
     
    $this->server = new WC_API_Server( $GLOBALS['wp']->query_vars['wc-api-route'] );
     
    // Register available resources for legacy v2 REST API request.
    $api_classes = apply_filters(
        'woocommerce_api_classes',