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