Filter hook 'wp_opcache_invalidate_file'

in WP Core File wp-admin/includes/file.php at line 2769

Description

Filters whether to invalidate a file from the opcode cache.

Occurrences

Filename Line Number
wp-admin/includes/file.php 2769

Parameters

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

PHP Doc

/**
	 * Filters whether to invalidate a file from the opcode cache.
	 *
	 * @since 5.5.0
	 *
	 * @param bool   $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
	 * @param string $filepath        The path to the PHP file to invalidate.
	 */