Filters the context resource boolean of the custom file get contents function.
$context (bool) (required) Whether or not to use a context resource. Default: true.
$app = \Liten\Liten::getInstance(); function http_proxy_authentication($context) { $context = false; return $context; } $app->hook->add_filter('resource_context', 'http_proxy_authentication', 10, 1);
Since 6.2.4
resource_context hook is located in app/src/functions/core-function.php.