wp_opcache_invalidate_file

wp_opcache_invalidate_file

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_opcache_invalidate_file') is found 1 times:

  • /wp-admin/includes/file.php line 2769
    	 *
    	 * @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;
    }