wordpress / latest / hooks / wp_opcache_invalidate_file.html

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

Filters whether to invalidate a file from the opcode cache.

Parameters

$will_invalidate bool
Whether WordPress will invalidate $filepath. Default true.
$filepath string
The path to the PHP file to invalidate.

Source

File: wp-admin/includes/file.php. View all references

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

Used By

Used By Description

Changelog

Version Description
5.5.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_opcache_invalidate_file