woocommerce_api_

woocommerce_api_

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_api_') is found 1 times:

  • /src/Internal/Utilities/LegacyRestApiStub.php line 162
    			// Is there actually something hooked into this API request? If not trigger 400 - Bad request.
    			status_header( has_action( 'woocommerce_api_' . $api_request ) ? 200 : 400 );
    
    			// Trigger an action which plugins can hook into to fulfill the request.
    			do_action( 'woocommerce_api_' . $api_request );
    
    			// phpcs:enable WooCommerce.Commenting.CommentHooks.HookCommentWrongStyle
    
    			// Done, clear buffer and exit.
    			ob_end_clean();
    			die( '-1' );