LLMS_Awards_Query::parse_args()

Parse arguments needed for the query.


Return Return

(void)


Top ↑

Source Source

File: includes/class-llms-awards-query.php

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
protected function parse_args() {
 
    $int_arrays = array(
        'users',
        'users__exclude',
        'related_posts',
        'related_posts__exclude',
        'engagements',
        'engagements__exclude',
        'templates',
        'templates__exclude',
    );
    foreach ( $int_arrays as $key ) {
        $this->arguments[ $key ] = $this->sanitize_id_array( $this->arguments[ $key ] );
    }
 
    $this->arguments['manual_only'] = llms_parse_bool( $this->arguments['manual_only'] );
 
    $this->arguments['page']     = absint( $this->arguments['page'] );
    $this->arguments['per_page'] = intval( $this->arguments['per_page'] );
 
    $this->arguments['no_found_rows'] = llms_parse_bool( $this->arguments['no_found_rows'] );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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