Inline documentation for hooks in wp-admin/export.php.

props mordauk.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25435 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-09-14 01:01:49 +00:00
parent 27d3a78193
commit 64eec20413
1 changed files with 15 additions and 1 deletions

View File

@ -94,6 +94,13 @@ if ( isset( $_GET['download'] ) ) {
$args['content'] = $_GET['content'];
}
/**
* Filter the export args.
*
* @since 3.5.0
*
* @param array $args The arguments to send to the exporter.
*/
$args = apply_filters( 'export_args', $args );
export_wp( $args );
@ -211,7 +218,14 @@ 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
/**
* Fires after the export filters form.
*
* @since 3.5.0
*/
do_action( 'export_filters' );
?>
<?php submit_button( __('Download Export File') ); ?>
</form>