Trigger an action on complete payment
add_action( ‘frm_payment_status_complete’, ‘frm_trigger_action_payment_complete’ ); function frm_trigger_action_payment_complete( $atts ) { $target_action_id = 450; // change 450 to your payment action ID if ( $atts[‘payment’]->status == ‘complete’ && $target_action_id === (int) $atts[‘payment’]->action_id ) { $to = get_option( ‘admin_email’ ); $subject = ‘Payment…Continue reading