verygoodplugins

Untitled

Dec 15th, 2020
484
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function corporate_accounts_tagging( $txn ) {
  2.  
  3.     if ( 'sub_account' == $txn->txn_type ) {
  4.  
  5.         $settings = get_post_meta( $txn->product_id, 'wpf-settings-memberpress', true );
  6.  
  7.         if ( ! empty( $settings['apply_tags_corporate_accounts'] ) ) {
  8.             wp_fusion()->user->apply_tags( $settings['apply_tags_corporate_accounts'], $txn->user_id );
  9.         }
  10.     }
  11.  
  12. }
  13.  
  14. add_action( 'mepr-txn-status-complete', 'corporate_accounts_tagging' );
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×