Clanbite Teams Since 1.3.0

apply_filters( 'clanbite_team_challenge_remote_allow_http', bool $allow_http, string $origin )

Filters whether plain-http remote sites may be contacted for challenges.

Defaults to true only on local / development environments; production requires https.

Filter PHP

Parameters

$allow_http (bool)

Whether http origins are allowed.

$origin (string)

Resolved remote origin (scheme + host + port).

Example

add_filter( 'clanbite_team_challenge_remote_allow_http', function ( $allow_http, $origin ) {
	// Change $allow_http here.
	return $allow_http;
}, 10, 2 );

Defined in inc/extensions/teams/class-team-challenges.php

Changelog

VersionDescription
1.3.0Introduced.