LLMS_REST_Webhooks_Query::parse_args()

Parses argument data


Return Return

(void)


Top ↑

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

	}


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.