wcpgsk_add_to_cart_redirect

The Woocommerce Poor Guys Swiss Knife wcpgsk add to cart redirect function.

Description

wcpgsk_add_to_cart_redirect(); 

Usage

  1. if ( !function_exists( 'wcpgsk_add_to_cart_redirect' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-poor-guys-swiss-knife/wcpgsk-af.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcpgsk_add_to_cart_redirect(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wcpgsk-af.php  
  1. function wcpgsk_add_to_cart_redirect() {  
  2. return get_permalink( woocommerce_get_page_id( 'cart' ) );