bbp_subscriptions_handler

  • do_action( 'bbp_subscriptions_handler', $success, $user_id, $topic_id, $action )

    Source Reference:

    • Component: bbPress:: bbp-user
      File: /bbp-includes/bbp-user-functions.php :: Trac Source Line: 712
      		$success         = false;
      
      		if ( $is_subscription && 'bbp_unsubscribe' == $action ) {
      			$success = bbp_remove_user_subscription( $user_id, $topic_id );
      		} elseif ( !$is_subscription && 'bbp_subscribe' == $action ) {
      			$success = bbp_add_user_subscription( $user_id, $topic_id );
      		}
      
      		// Do additional subscriptions actions
      		do_action( 'bbp_subscriptions_handler', $success, $user_id, $topic_id, $action );
      
      		// Check for missing reply_id or error
      		if ( true == $success ) {
      
      			// Redirect back to new reply
      			if ( bbp_is_subscriptions() ) {
      				$redirect = bbp_get_subscriptions_permalink( $user_id );
      			} elseif( bbp_is_single_user() ) {
      				$redirect = bbp_get_user_profile_url();
      			} elseif ( is_singular( bbp_get_topic_post_type() ) ) {
      

Comments are closed.