How to change the default status of shipment after created in Shipment Rate

Add new row in package table

Copy and paste the following code in your child theme’s functions.php file.

add_filter( 'wpcsr_default_shipment_status', 'wpcsr_default_shipment_status_callback', 10, 1 );
function wpcsr_default_shipment_status_callback( $default_status){
	/*
	 * Change the "Pending Payment" to the status you prefer.
	 * Make sure that the status you set as default is present in your status list.
	 */
	$new_default = 'Pending Payment';
	return $new_default;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop