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
107 108 109 110 111 112 113 114 115 116 117 118 119 120 | 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. |