woocommerce_after_serializing_{$this->object_type}_for_caching

woocommerce_after_serializing_{$this->object_type}_for_caching

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.9.0

apply_filters('woocommerce_after_serializing_{$this->object_type}_for_caching') is found 1 times:

  • /src/Caching/ObjectCache.php line 213
    		 * @param array $data The already serialized object data.
    		 * @param array|object $object The object before serialization.
    		 * @returns array The actual serialized object data that will be passed to the cache engine.
    		 */
    		$data = apply_filters( "woocommerce_after_serializing_{$this->object_type}_for_caching", $data, $object, $id );
    
    		$this->last_cached_data = $data;
    		return $this->get_cache_engine()->cache_object( $this->get_cache_key_prefix() . $id, $data, self::DEFAULT_EXPIRATION === $expiration ? $this->default_expiration : $expiration );
    	}
    
    	/**