Automattic\WooCommerce\Internal\Fulfillments
FulfillmentUtils::get_shipping_providers
Get the shipping providers.
This method retrieves the shipping providers registered in the WooCommerce Fulfillments system. It can be filtered using the woocommerce_fulfillment_shipping_providers
Method of the class: FulfillmentUtils{}
Hooks from the method
Returns
Array. An associative array of shipping providers with their details.
Usage
$result = FulfillmentUtils::get_shipping_providers(): array;
FulfillmentUtils::get_shipping_providers() FulfillmentUtils::get shipping providers code WC 10.3.3
public static function get_shipping_providers(): array {
/**
* This filter allows plugins to modify the list of shipping providers.
* It can be used to add, remove, or change the shipping providers available in the
* WooCommerce Fulfillments system.
*
* @since 10.1.0
*
* @param array $shipping_providers The default list of shipping providers.
*/
return apply_filters(
'woocommerce_fulfillment_shipping_providers',
array()
);
}