public static function http_request_args( $args, $url ) {
		$args['sslverify'] = true;
		if ( false === stripos( $args['user-agent'], 'GitHub Updater' ) ) {
			$args['user-agent']   .= '; GitHub Updater - https://github.com/afragen/github-updater';
			$args['wp-rest-cache'] = [ 'tag' => 'github-updater' ];
		}

		return $args;
	}
public static function http_request_args( $args, $url ) {
		$args['sslverify'] = true;
		if ( false === stripos( $args['user-agent'], 'GitHub Updater' ) ) {
			$args['user-agent']   .= '; GitHub Updater - https://github.com/afragen/github-updater';
			$args['wp-rest-cache'] = [ 'tag' => 'github-updater' ];
		}

		return $args;
	}
public static function http_request_args ( $ args , $ url ) { $ args [ 'sslverify' ] = true ; if ( false === stripos ( $ args [ 'user-agent' ] , 'GitHub Updater' ) ) { $ args [ 'user-agent' ] .= '; GitHub Updater - https://github.com/afragen/github-updater' ; $ args [ 'wp-rest-cache' ] = [ 'tag' => 'github-updater' ] ; } return $ args ; }
Adds custom user agent for GitHub Updater.

@access public

@param array  $args Existing HTTP Request arguments.
@param string $url  URL being passed.

@return array Amended HTTP Request arguments.
Adds custom user agent for GitHub Updater .