Add the export_filters and wp_export_args hooks. props MartyThornley, brandondove. fixes #19863.

git-svn-id: http://core.svn.wordpress.org/trunk@22392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-06 00:06:44 +00:00
parent 80405f9935
commit c9c8c0d214
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,8 @@ if ( isset( $_GET['download'] ) ) {
$args['content'] = $_GET['content'];
}
$args = apply_filters( 'wp_export_args', $args );
export_wp( $args );
die();
}
@ -209,6 +211,8 @@ function export_date_options( $post_type = 'post' ) {
<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
<?php endforeach; ?>
<?php do_action( 'export_filters' ) ?>
<?php submit_button( __('Download Export File') ); ?>
</form>
</div>