芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/bb-plugin/classes/class-fl-builder-export.php
'fl-builder-template', 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => '-1' ) ); foreach( $query->posts as $post ) { $data[] = array( 'id' => $post->ID, 'title' => $post->post_title ); } echo json_encode( $data ); die(); } /** * Download the export file. * * @since 1.8 * @param array $args * @return void */ static public function export( $args ) { if ( ! current_user_can( 'export' ) ) { return; } if ( 'fl-builder-template' != $args['content'] ) { return; } if ( ! isset( $_REQUEST['fl-builder-template-export-select'] ) ) { return; } if ( 'all' == $_REQUEST['fl-builder-template-export-select'] ) { return; } if ( ! is_array( $_REQUEST['fl-builder-export-template'] ) ) { return; } require_once FL_BUILDER_DIR . 'includes/export.php'; fl_export_wp( $_REQUEST['fl-builder-export-template'] ); die(); } } FLBuilderExport::init();