woocommerce_order_payment_status_changed

woocommerce_order_payment_status_changed

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_order_payment_status_changed') is found 1 times:

  • /includes/class-wc-order.php line 435
    						 * @since 3.9.0
    						 * @param int Order ID
    						 * @param WC_Order Order object
    						 */
    						do_action( 'woocommerce_order_payment_status_changed', $this->get_id(), $this );
    					}
    				} else {
    					/* translators: %s: new order status */
    					$transition_note = sprintf( __( 'Order status set to %s.', 'woocommerce' ), wc_get_order_status_name( $status_transition['to'] ) );
    
    					// Note the transition occurred.