Remove shop order messages in favour of new code
This commit is contained in:
parent
0f83f88ece
commit
dbfddcd67c
|
@ -288,26 +288,6 @@ function woocommerce_custom_shop_order_orderby( $vars ) {
|
|||
return $vars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Order messages
|
||||
**/
|
||||
add_filter( 'post_updated_messages', 'woocommerce_post_updated_messages' );
|
||||
|
||||
function woocommerce_post_updated_messages( $messages ) {
|
||||
if( get_post_type() === 'shop_order' ) :
|
||||
|
||||
$messages['post'][1] = sprintf( __('Order updated.', 'woothemes') );
|
||||
$messages['post'][4] = sprintf( __('Order updated.', 'woothemes') );
|
||||
$messages['post'][6] = sprintf( __('Order published.', 'woothemes') );
|
||||
|
||||
$messages['post'][8] = sprintf( __('Order submitted.', 'woothemes') );
|
||||
$messages['post'][10] = sprintf( __('Order draft updated.', 'woothemes') );
|
||||
|
||||
endif;
|
||||
return $messages;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Mark an order as complete
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue