LLMS_REST_API_Keys_Query::parse_args()
Parses argument data
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys-query.php
protected function parse_args() {
// Sanitize post & user ids.
foreach ( array( 'include', 'exclude', 'user', 'user_not_in' ) as $key ) {
$this->arguments[ $key ] = $this->sanitize_id_array( $this->arguments[ $key ] );
}
// Validate permissions.
$permissions = $this->get( 'permissions' );
if ( $permissions && ! in_array( $permissions, array_keys( LLMS_REST_API()->keys()->get_permissions() ), true ) ) {
$this->arguments['permissions'] = '';
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |