Mark RauterkusTips

Coding Ninja Forms for different outcomes

2022-04-27 · Status: publish · Development, NinjaForms

Update from August 26, 2025

No update. This code change does not work like it used to work.

The post is created even if the Stripe transaction has not happened.

From Tech Support in June 2025 concerning GAGC.blue

The ability to have the Create Post Action only process after a payment has been registered is something that is on our roadmap, but unfortunately, this has not been added as a feature yet.

I believe that editing the timing within the Front-End Posting add-on to have it process later would work, however.

I have applied a 1 line edit to the Front-End Posting add-on to change the timing of the Create Post Action to "late" instead of "normal" for your use-case.

If you would, please install the following Front-End Posting add-on:https://drive.google.com/file/d/1eXFngS3EKSCLp93PLNzxrR-rPcpvnDBH/view?usp=share_link

Note: This edit will be lost if the Front-End Posting add-on is updated/reinstalled. I have included instructions on the 1 line changes just in case you need to apply this in the future:

To do this:

  1. Navigate to WordPress Plugins and temporarily deactivate the "Ninja Forms - Post Creation" add-on.
  2. Navigate to Plugins > Plugin Editor
  3. In the dropdown on the right, select the Ninja Forms Post Creation entry and click "Select"
  4. When the page reloads, in the navigation on the right, navigate to "includes > Actions" and click on "CreatePost.php"
  5. On line 21, for the "timing", change this line to say:protected $_timing = 'late';https://drive.google.com/file/d/1NIkWGo1MJvOS-rGgM3hM6VFyAjZc29fX/view?usp=drivesdkMR note: This shows up on line 22 in my system. MR note: Note sure if there is a space or line-break after the late'; Test #1 had a space and it did not work.Test #2 attempt without a space. I think it worked. More testing from office people next. 
  6. Scroll down and click "Update file". You can now reactivate the Front-End Posting/Post Creation add-on.

Please give this a try and let us know if this works for you.

Best,Deekshith

Tips from Tech Support

Background

Actions in Ninja Forms fire in accordance with timing and priority rules that are set within the plugin files, and while it is possible to change those rules, at this time we have not yet implemented a user-friendly way to visualize the rules. This is something that is on our development roadmap, but because it affects a large number of plugins and could be overwhelming to many customers, and most importantly because making certain timing changes could result in unintended effects, we don't want to rush it.

The default timing and priority rules attempt to anticipate the most common combinations of actions, but there are certainly use cases that demand more precise control.

To implement this change, you can manually change one line in the Post Creation plugin code for the Create Post action to delay until after payment processing has completed (note that this will not prevent the submission data from being recorded if payment is not completed -- only the post creation).

  • Alternatively, you can edit the file via FTP.

Change the timing from 'normal' to 'late'.So:

becomes

Then update the file, and test to ensure that the behavior is functioning as intended.

Source: helpdesk.WordPress.2026-06-05.xml · Original ID: 3312