Advertisement
verygoodplugins

Untitled

Feb 1st, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1.     public function subscription_status_hold( $subscription_id, $settings ) {
  2.  
  3.         // Clear the hook because sometimes it gets cached
  4.         wp_clear_scheduled_hook( 'wpf_subscription_status_hold', array( $subscription_id, $settings ) );
  5.  
  6.         // Handling for hooks registered before the switch to IDs
  7.         if( is_object( $subscription_id ) ) {
  8.             $subscription = $subscription_id;
  9.         } else {
  10.             $subscription = wcs_get_subscription( $subscription_id );
  11.         }
  12.  
  13.         if( empty( $subscription ) || ! is_object( $subscription ) ) {
  14.             return;
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement