LLMS_Admin_Table::get_table_filters_html()
Get HTML for the filters displayed in the head of the table.
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function get_table_filters_html() { ob_start(); ?> <div class="llms-table-filters"> <?php foreach ( $this->get_columns() as $id => $data ) : ?> <?php if ( is_array( $data ) && isset( $data['filterable'] ) && is_array( $data['filterable'] ) ) : ?> <div class="llms-table-filter-wrap"> <select class="llms-select2 llms-table-filter" id="<?php printf( '%1$s-%2$s-filter', $this->id, $id ); ?>" name="<?php echo $id; ?>"> <option value="<?php echo $this->get_filter(); ?>"><?php echo $this->get_filter_placeholder( $id, $data ); ?></option> <?php foreach ( $data['filterable'] as $val => $name ) : ?> <option value="<?php echo $val; ?>"><?php echo $name; ?></option> <?php endforeach; ?> </select> </div> <?php endif; ?> <?php endforeach; ?> </div> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |