Support Forum
Hi guys,
We're loving the new Custom Model capability, a huge leap forwards for WP!
I appreciate that this is a very new feature for MB Custom Table but in trying to use it for the first time on a new client project we are coming up against some significant limitations. All the basic functionality is there but when you want to add content using standard WP hooks we find they don't exist (or at least not in a way we can find out).
Please could you add the following capabilities to the ListTable class for Custom Table?
1. extra_tablenav - So we can add custom filters for the table. Possibly as follows...
/**
* @param string $which
*/
protected function extra_tablenav( $which ) {
?>
<div class="alignleft actions">
<?php
if ( 'top' === $which ) {
ob_start();
do_action( 'restrict_manage_posts', $this->model->name, $which );
$output = ob_get_clean();
if ( ! empty( $output ) ) {
echo $output;
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
}
}
?>
</div>
<?php
}
2. list_table_primary_column - So we can define a primary column for the table (that contains the row actions) to replace the currently hard-coded id column.
3. Row Actions - So we can hook into and add/edit/delete row actions for custom functionality.
4. In a perfect world... - We'd love to be able to hook into (and modify) the html created for the each of the table headers as we would like to be able to create an individual column search capability.
In short, please can you add in the List table hooks that we are used to being able to use for a standard CPT.
Thanks in advance guys.
All the best,
Will