function hocwp_get_product_base() { $page = hocwp_wc_get_shop_page(); $base = 'product'; if (is_a($page, 'WP_Post')) { $base = $page->post_name; } return $base; }
function hocwp_wc_after_cart_table() { $page = hocwp_wc_get_shop_page(); $permalink = apply_filters('hocwp_return_shop_url', get_permalink($page)); ?> <a title="" href="<?php echo $permalink; ?> " class="btn-grey hocwp-button return-shop"><i class="fa fa-angle-left icon-left"></i> <?php _e('Continue shopping', 'hocwp-theme'); ?> </a> <?php do_action('hocwp_wc_after_return_shop_button'); }