Snippets

Visser Labs Override the Post Status labels that are included in exports

Created by Michael Visser
<?php
function custom_woo_ce_format_post_status( $output = '', $post_status = '' ) {

	if( $post_status == 'publish' )
		$output = 'p';
	else if( $post_status == 'draft' )
		$output = 'd';
	return $output;

}
add_filter( 'woo_ce_format_post_status', 'custom_woo_ce_format_post_status', 10, 2 );
?>

Comments (0)