apply_filters( ‘wp_opcache_invalidate_file’, bool $will_invalidate, string $filepath )

In this article

Filters whether to invalidate a file from the opcode cache.

Parameters

$will_invalidatebool
Whether WordPress will invalidate $filepath. Default true.
$filepathstring
The path to the PHP file to invalidate.

Source

if ( apply_filters( 'wp_opcache_invalidate_file', true, $filepath ) ) {

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.