wp_opcache_invalidate_file

wp_opcache_invalidate_file

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_opcache_invalidate_file') is found 1 times:

  • /wp-admin/includes/file.php line 2745
    2741
    2742
    2743
    2744
    2745
    2746
    2747
    2748
    2749
    2750
         *
         * @param bool   $will_invalidate Whether WordPress will invalidate `$filepath`. Default true.
         * @param string $filepath        The path to the PHP file to invalidate.
         */
        if ( apply_filters( 'wp_opcache_invalidate_file', true, $filepath ) ) {
            return opcache_invalidate( $filepath, $force );
        }
     
        return false;
    }