Snippets

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

Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?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 );
+?>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.