ASTRA_Ext_WooCommerce_Markup::recently_viewed()
Recently viewed.
Description
Return
(void)
Source
File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php
public function recently_viewed() {
if ( astra_get_option( 'single-product-recently-viewed-display' ) && is_singular( 'product' ) ) {
remove_action( 'template_redirect', 'wc_track_product_view', 20 );
add_action( 'template_redirect', array( $this, 'track_product_view_always' ), 20 );
add_action( 'woocommerce_after_single_product', array( $this, 'recently_viewed_html' ), 1 );
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.9.3 | Introduced. |