require_once('./includes/export.php');
$title = __('Export');
-function add_js() {
+/**
+ * Display JavaScript on the page.
+ *
+ * @since 3.5.0
+ */
+function export_add_js() {
?>
<script type="text/javascript">
//<![CDATA[
</script>
<?php
}
-add_action( 'admin_head', 'add_js' );
+add_action( 'admin_head', 'export_add_js' );
get_current_screen()->add_help_tab( array(
'id' => 'overview',
$args['content'] = $_GET['content'];
}
+ $args = apply_filters( 'export_args', $args );
+
export_wp( $args );
die();
}
<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 submit_button( __('Download Export File'), 'secondary' ); ?>
+<?php do_action( 'export_filters' ) ?>
+
+<?php submit_button( __('Download Export File') ); ?>
</form>
</div>