apply_filters( 'wp_opcache_invalidate_file', bool $will_invalidate, string $filepath )

Filters whether to invalidate a file from the opcode cache.


Parameters

$will_invalidate

Whether WordPress will invalidate $filepath. Default true.

$filepath

The path to the PHP file to invalidate.


Source

File: wp-admin/includes/file.php

View on GitHub



Changelog

Changelog
Version Description
5.5.0 Introduced.