LLMS_Admin_Table::get_args()
Retrieve the arguments defined in set_args.
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function get_args() {
$default = array(
'page' => $this->get_current_page(),
'order' => $this->get_order(),
'orderby' => $this->get_orderby(),
);
if ( $this->is_filterable ) {
$default['filter'] = $this->get_filter();
$default['filterby'] = $this->get_filterby();
}
if ( $this->is_searchable ) {
$default['search'] = $this->get_search();
}
$args = wp_parse_args( $this->set_args(), $default );
/**
* Filters the arguments used to build the query.
*
* The dynamic portion of this filter `{$this->id}` refers to the unique ID for the table.
*
* @since 3.15.0
*
* @param array $args Arguments to build the query whose results will populate the table.
*/
return apply_filters( "llms_table_get_args_{$this->id}", $args );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.2.0 | |
| 3.15.0 | Introduced. |