feat: add a pod_name parameter
This commit is contained in:
parent
8ccabf59a1
commit
8043cc7739
2 changed files with 16 additions and 29 deletions
|
@ -3,7 +3,7 @@
|
|||
Plugin Name: TablePress Extension: Pods tables
|
||||
Plugin URI: https://code.studioinfinity.org/glen/tablepress-pods
|
||||
Description: Custom Extension for TablePress to incorporate Pods information in tables
|
||||
Version: 0.2.8
|
||||
Version: 0.2.9
|
||||
Author: Glen Whitney
|
||||
Author URI: http://studioinfinity.org/
|
||||
*/
|
||||
|
@ -98,11 +98,13 @@ function playground_exportpods_data( $data, $act ) {
|
|||
$data['export_ids'] = array();
|
||||
}
|
||||
$exporter = TablePress::load_class( 'TablePress_Export', 'class-export.php', 'classes' );
|
||||
$data['zip_support_available'] = $exporter->zip_support_available;
|
||||
$data['zip_support_available'] = false;
|
||||
$data['export_formats'] = $exporter->export_formats;
|
||||
$data['csv_delimiters'] = $exporter->csv_delimiters;
|
||||
$data['export_format'] = ( ! empty( $_GET['export_format'] ) ) ? $_GET['export_format'] : false;
|
||||
$data['csv_delimiters'] = $exporter->csv_delimiters;
|
||||
$data['csv_delimiter'] = ( ! empty( $_GET['csv_delimiter'] ) ) ? $_GET['csv_delimiter'] : _x( ',', 'Default CSV delimiter in the translated language (";", ",", or "tab")', 'tablepress' );
|
||||
$data['pod_names'] = pods_api()->load_pods();
|
||||
$data['pod_name'] = ( ! empty( $_GET['pod_name'] ) ) ? $_GET['pod_name'] : false;
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue