sequra_shop_status_completed

Filter the WooCommerce status for completed.

Description

This filter allows modifying the WooCommerce statuses used to determine if an order is completed. Each status must have the wc- prefix.

ParameterTypeDescription
$statusesarrayContains the prefixed WooCommerce statuses used to determine if an order is completed.

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_shop_status_completed', function($statuses){
  return ['wc-completed'];
});