resource_context

Description

Filters the context resource boolean of the custom file get contents function.

Parameters

$context (bool) (required) Whether or not to use a context resource. Default: true.

Example

$app = \Liten\Liten::getInstance();

function http_proxy_authentication($context) {
    $context = false;
    return $context;
}
$app->hook->add_filter('resource_context', 'http_proxy_authentication', 10, 1);

Change Log

Since 6.2.4

Source File

resource_context hook is located in app/src/functions/core-function.php.

See Also