LLMS_Admin_Table::clean_args( array $args = array() )
Ensure that a valid array of data is passed to a query.
Description Description
Used by AJAX methods to clean unnecessary parameters before passing the request data to the get_results function.
Parameters Parameters
- $args
-
(array) (Optional) array of arguments
Default value: array()
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
protected function clean_args( $args = array() ) { $allowed = array_keys( $this->get_args() ); foreach ( $args as $key => $val ) { if ( ! in_array( $key, $allowed ) ) { unset( $args[ $key ] ); } } return $args; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |