$args Additional query arguments to send to the remote API. * @return array The query arguments to send to the remote API. */ protected function get_query_args( array $args = array() ): array { $query_args = parent::get_query_args( $args ); unset( $query_args['secret'] ); return $query_args; } /** * Executes the API request. * * @since 3.17.0 * * @param array $args The arguments to pass to the API request. * @return WP_Error|array The response from the API request. */ public function call( array $args = array() ) { // Filter out the empty values. $args = array_filter( $args ); // When the URL is provided, the UUID cannot be provided. if ( isset( $args['uuid'] ) && isset( $args['url'] ) ) { unset( $args['uuid'] ); } return $this->request( 'GET', $args ); } }