wp_opcache_invalidate_file

过滤钩子


apply_filters( 'wp_opcache_invalidate_file', true, $filepath )
参数
  • (bool)
    $will_invalidate
    Whether WordPress will invalidate `$filepath`. Default true.
    Required:
  • (string)
    $filepath
    The path to the PHP file to invalidate.
    Required:
定义位置
  • wp-admin/includes/file.php
    , line 2553
引入
5.5.0
弃用

Filters whether to invalidate a file from the opcode cache.

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