woocommerce_payment_complete_order_status, $this->needs_processing(
woocommerce_payment_complete_order_status, $this->needs_processing(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_payment_complete_order_status, $this->needs_processing(') is found 3 times:
- /includes/class-wc-order.php line 174
* @param int $order_id Order ID. * @param WC_Order $this Order object. * @since 2.7.0 */ $next_status = apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? OrderStatus::PROCESSING : OrderStatus::COMPLETED, $this->get_id(), $this ); $transaction_id = $this->get_transaction_id(); $payment_method = $this->get_payment_method_title(); // translators: %1$s is the payment method, %2$s is the transaction id. $payment_complete_note = $payment_method && $transaction_id ? sprintf( __( 'Payment via %1$s (%2$s).', 'woocommerce' ), $payment_method, $transaction_id ) : __( 'Payment complete.', 'woocommerce' );
- /includes/class-wc-order.php line 366
* @param int $order_id Order ID. * @param WC_Order $this Order object. * @since 2.7.0 */ $payment_completed_status = apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? OrderStatus::PROCESSING : OrderStatus::COMPLETED, $this->get_id(), $this ); if ( $this->has_status( $payment_completed_status ) ) { // If payment complete status is reached, set paid now. $this->set_date_paid( time() ); } elseif ( OrderStatus::PROCESSING === $payment_completed_status && $this->has_status( OrderStatus::COMPLETED ) ) { - /includes/class-wc-order.php line 970
* @param int $order_id Order ID. * @param WC_Order $this Order object. * @since 3.0.0 */ && $this->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? OrderStatus::PROCESSING : OrderStatus::COMPLETED, $this->get_id(), $this ) ) ) { // In view context, return a date if missing. $date_paid = $this->get_date_created( 'edit' ); } return $date_paid; }