Add an "Export Pods Table" action to the TablePress menu #6
@ -3,7 +3,7 @@
|
|||||||
Plugin Name: TablePress Extension: Pods tables
|
Plugin Name: TablePress Extension: Pods tables
|
||||||
Plugin URI: https://code.studioinfinity.org/glen/tablepress-pods
|
Plugin URI: https://code.studioinfinity.org/glen/tablepress-pods
|
||||||
Description: Custom Extension for TablePress to incorporate Pods information in tables
|
Description: Custom Extension for TablePress to incorporate Pods information in tables
|
||||||
Version: 0.2.12
|
Version: 0.2.13
|
||||||
Author: Glen Whitney
|
Author: Glen Whitney
|
||||||
Author URI: http://studioinfinity.org/
|
Author URI: http://studioinfinity.org/
|
||||||
*/
|
*/
|
||||||
@ -201,8 +201,9 @@ function playground_handle_exportpods () {
|
|||||||
$export = wp_unslash( $_POST['export'] );
|
$export = wp_unslash( $_POST['export'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
$real_export = TablePress::url( array( 'action' => 'export', 'export' = > $export ), true, 'admin-post.php' );
|
$real_export = TablePress::url( array( 'action' => 'export', 'export' => $export ), false, 'admin-post.php' );
|
||||||
wp_redirect( $real_export );
|
$nonced_export = add_query_arg( '_wpnonce', wp_create_nonce( TablePress::nonce('export') ), $real_export);
|
||||||
|
wp_redirect( $nonced_export );
|
||||||
}
|
}
|
||||||
__halt_compiler();
|
__halt_compiler();
|
||||||
$exporter = TablePress::load_class( 'TablePress_Export', 'class-export.php', 'classes' );
|
$exporter = TablePress::load_class( 'TablePress_Export', 'class-export.php', 'classes' );
|
||||||
|
Loading…
Reference in New Issue
Block a user