feat: add pod_where and pod_dump options

This commit is contained in:
Glen Whitney 2021-02-08 16:30:57 -08:00
parent 0556eee2d5
commit 4a73e0551f
2 changed files with 21 additions and 2 deletions

View file

@ -170,6 +170,20 @@ class TablePress_ExportPods_View extends TablePress_View {
</select>
</td>
</tr>
<tr>
<th class="column-1" scope="row"><label for="tables-export-pod-where"><?php _e( 'Pod "where" clause', 'tablepress'); ?>:</label></th>
<td class="column-2">
<input id="tables-export-pod-where" name="export[pod_where]" value="" />
<span id="tables-export-pod-where-description" class="description hide-if-js"><?php _e( '(Text passed to pod_where() to filter Pod records.)', 'tablepress' ); ?></span>
</td>
</tr>
<tr>
<th class="column-1" scope="row"><label for="tables-export-pod-dump"><?php _e( 'Dump Pod?', 'tablepress'); ?>:</label></th>
<td class="column-2">
<input type="checkbox" id="tables-export-pod-dump" name="export[pod_dump]" />
<span id="tables-export-pod-dump-description" class="description hide-if-js"><?php _e( '(If checked, ignores the table and simply dumps all Pod records.)', 'tablepress' ); ?></span>
</td>
</tr>
</tbody>
</table>
<?php