wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_opcache_invalidate_file › WordPress过滤钩子

Since5.5.0
已弃用n/a
apply_filters( 'wp_opcache_invalidate_file', true, $filepath )
参数: (2)
  • (bool) $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
    Required: Yes
  • (string) $filepath The path to the PHP file to invalidate.
    Required: Yes
定义在:
文档:

Filters whether to invalidate a file from the opcode cache.





源码

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