Remove shop order messages in favour of new code

This commit is contained in:
Mike Jolley 2011-12-06 10:17:50 +00:00
parent 0f83f88ece
commit dbfddcd67c
1 changed files with 0 additions and 20 deletions

View File

@ -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
*/