Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function subscription_status_hold( $subscription_id, $settings ) {
- // Clear the hook because sometimes it gets cached
- wp_clear_scheduled_hook( 'wpf_subscription_status_hold', array( $subscription_id, $settings ) );
- // Handling for hooks registered before the switch to IDs
- if( is_object( $subscription_id ) ) {
- $subscription = $subscription_id;
- } else {
- $subscription = wcs_get_subscription( $subscription_id );
- }
- if( empty( $subscription ) || ! is_object( $subscription ) ) {
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement