Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created March 6, 2017 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2477153b4aaedcadc86c545f9b61fd11 to your computer and use it in GitHub Desktop.
Save anonymous/2477153b4aaedcadc86c545f9b61fd11 to your computer and use it in GitHub Desktop.
<?php
//functions.php
//Located at: /public_html/wp-content/themes/virtue_premium_child
/**
* Changes the redirect URL for the Return To Shop button in the cart.
*
* @return string
**/
function wc_empty_cart_redirect_url() {
return 'https://birdfeet.net/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
/**
* End of Changes the redirect URL for the Return To Shop button in the cart.
*
**/
//
/**
* Gravity Forms Custom Activation Template - 2017-03-01
* http://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page
*/
//
add_action('wp', 'custom_maybe_activate_user', 9);
function custom_maybe_activate_user() {
$template_path = STYLESHEETPATH . '/gfur-activate-template/activate.php';
$is_activate_page = isset( $_GET['page'] ) && $_GET['page'] == 'gf_activation';
if( ! file_exists( $template_path ) || ! $is_activate_page )
return;
require_once( $template_path );
exit();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment