Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
420 B
2
Indexable
Never
add_action('marketking_order_statuses_custom', function($user_id, $status){
	?>
	<option value="shipped-by-vendor" <?php selected($status, 'shipped-by-vendor', true);?>><?php esc_html_e('Shipped by vendor','marketking-multivendor-marketplace-for-woocommerce');?></option>
	<?php
}, 10, 2);
add_filter('marketking_modifiable_statuses', function($statuses){
	$statuses[]='shipped-by-vendor';
	return $statuses;
}, 10, 1);