woocommerce_graphql_opcache_cache_dir

woocommerce_graphql_opcache_cache_dir

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.9.4

apply_filters('woocommerce_graphql_opcache_cache_dir') is found 1 times:

  • /src/Internal/Api/QueryCache.php line 302
    		 * @since 10.9.0
    		 *
    		 * @param string $dir Default cache directory under wp-uploads.
    		 */
    		$dir = (string) apply_filters( 'woocommerce_graphql_opcache_cache_dir', $default );
    
    		// Reject stream wrappers (e.g. phar://, http://) to keep file_put_contents,
    		// rename, and include constrained to local filesystem paths.
    		if ( '' === $dir || wp_is_stream( $dir ) ) {
    			return '';
    		}