*/
public function __invoke( $_, $assoc_args ) {
$defaults = array(
- 'dir' => NULL,
- 'start_date' => NULL,
- 'end_date' => NULL,
- 'post_type' => NULL,
- 'author' => NULL,
- 'category' => NULL,
- 'post_status' => NULL,
- 'post__in' => NULL,
- 'skip_comments' => NULL,
- 'file_item_count' => 1000,
+ 'dir' => NULL,
+ 'start_date' => NULL,
+ 'end_date' => NULL,
+ 'post_type' => NULL,
+ 'author' => NULL,
+ 'category' => NULL,
+ 'post_status' => NULL,
+ 'post__in' => NULL,
+ 'skip_comments' => NULL,
+ 'file_item_count' => 1000,
'verbose' => false,
);
if ( !$this->verbose )
$progress = new \cli\progress\Bar( 'Exporting', count( $post_ids ) );
- $this->start_export();
- echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . "\" ?>\n";
+ $this->start_export();
+ echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . "\" ?>\n";
?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->