WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_payment_complete_order_status хук-фильтр . WC 1.0

This logic only runs if the date_paid prop has not been set yet.

Использование

add_filter( 'woocommerce_payment_complete_order_status', 'filter_function_name_565', 10, 3 );
function filter_function_name_565( $processing, $id, $that ){
	// filter...

	return $processing;
}
$processing
-
$id
-
$that
-

Где вызывается хук

WC_Order::maybe_set_date_paid()
woocommerce_payment_complete_order_status
WC_Order_Data_Store_CPT::update()
woocommerce_payment_complete_order_status
WC_Order::payment_complete()
woocommerce_payment_complete_order_status
WC_Order::get_date_paid()
woocommerce_payment_complete_order_status
woocommerce/includes/class-wc-order.php 292
$payment_completed_status = apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this );
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 155
if ( ! $order->get_date_paid( 'edit' ) && version_compare( $order->get_version( 'edit' ), '3.0', '<' ) && $order->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $order->needs_processing() ? 'processing' : 'completed', $order->get_id(), $order ) ) ) {
woocommerce/includes/class-wc-order.php 118
$this->set_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) );
woocommerce/includes/class-wc-order.php 800
if ( 'view' === $context && ! $date_paid && version_compare( $this->get_version( 'edit' ), '3.0', '<' ) && $this->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) ) ) {

Где используется хук (в ядре WC)

includes/gateways/cod/class-wc-gateway-cod.php 44
add_filter( 'woocommerce_payment_complete_order_status', array( $this, 'change_payment_complete_order_status' ), 10, 3 );