This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BuddyDrive_Theme_Compat { | |
/** | |
* Setup the BuddyDrive component theme compatibility | |
* | |
* @since BuddyDrive (1.0) | |
*/ | |
public function __construct() { | |
add_action( 'bp_setup_theme_compat', array( $this, 'is_buddydrive' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_checkout_subscription_created', 'maybe_reinstate_gifting_address', 99, 3 ); | |
/** | |
* Ugly hack to reinstate the ship to address, if it's been removed by the gifting plugin | |
* Don't remove if it's an existing user though | |
* @param [type] $subscription [description] | |
* @param [type] $order [description] | |
* @param [type] $recurring_cart [description] |