LLMS_REST_API_Keys_Query::parse_args()

Parses argument data


Return Return

(void)


Top ↑

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'] = '';
    }
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.