mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Add the export_filters and wp_export_args hooks. props MartyThornley, brandondove. fixes #19863.
git-svn-id: https://develop.svn.wordpress.org/trunk@22392 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d1313833d
commit
0c2e06909d
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user