feat: add pod_where and pod_dump options
This commit is contained in:
parent
0556eee2d5
commit
4a73e0551f
2 changed files with 21 additions and 2 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.16
|
||||
Version: 0.2.17
|
||||
Author: Glen Whitney
|
||||
Author URI: http://studioinfinity.org/
|
||||
*/
|
||||
|
@ -204,7 +204,12 @@ function playground_handle_exportpods () {
|
|||
$_REQUEST['_wpnonce'] = wp_create_nonce( TablePress::nonce( 'export' ) );
|
||||
|
||||
/* Set up the filter using the pod params */
|
||||
$r_opts = array('pod_name' => $export['pod_name']);
|
||||
$r_opts = array('pod_name' => $export['pod_name'],
|
||||
'pod_where' => $export['pod_where']
|
||||
);
|
||||
if ( isset( $export['pod_dump'] ) ) {
|
||||
$r_opts['pod_dump'] = true;
|
||||
}
|
||||
$filter = function( $data, $tab, $fmt, $delim ) use ($r_opts) {
|
||||
$newtab = playground_expand_pod($tab, $r_opts);
|
||||
$exporter = TablePress::load_class( 'TablePress_Export', 'class-export.php', 'classes' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue