It’s likely that there’s just a difference between the hooks that run when a post is edited in the admin and however ACF Front End Forms works. This plugin certainly doesn’t support all third-party methods for dealing with data in WordPress. It basically does support ACF itself, but there are many add-ons and other things that use ACF in non-standard-WordPress ways, and by default this plugin is unlikely to support them.
You might be able to build an add-on to this plugin using the developer hooks that would work with the Front End forms plugin. I’m not familiar with it though, other than knowing that it exists.
Thanks for your reply. I totally get that your plugin cant work with every other plugin available.
Is there a way to get your plugin to update salesforce on a timer perhaps? So every day at X O’clock the plugin will send all the posts to salesforce?
ACF Front end from does have have a hook I can use when saving post data on the front end. Do you have any documentation that might help me create a function that I can use to trigger the send data to salesforce.
We have documentation for all of our developer hooks here. You could investigate and see if there’s a hook that would work for you. I don’t really provide support for the hooks in this forum though.
Alternatively, if you’d like to test a solution with the ACF Front End hook, please do, and if it works you can submit a pull request that uses your hook and I’d be willing to merge it. You can see an example of how the plugin uses the built in WordPress hooks, and what might be a similar hook that someone added from the Ultimate Membership plugin for adding users, in this code.
I think it’s very unlikely that I would restructure the plugin to “update salesforce on a timer” as you say. But if there’s a hook that fits in well with how the plugin works, that could be a solid solution.
Jonathan, thanks for all the help so far. Would you be willing to build a solution for us as We have budget for this and I feel its a bit out of my skillset. What is the best way to contact you outside of the forum?
I don’t really have the capacity to take on a project at the moment, but I did some quick research to see what the ACF hook does, and it looks like it wouldn’t conflict with the plugin. I’m willing to merge it if you’re willing to do some testing. I’d like to make sure that it works with ACF on the front end, but I don’t use ACF much and don’t have time to set up a test environment for it. See the pull request here.
Hi Jonathan,
Just tested your test branch “390-acf-front-end” and can confirm it now sends data to salesforce when saving on the front end.
Thanks so much for including this in your plugin!
Thank you for testing this. Does it still work on the admin side, as well? I want to make sure that adding this for the front end doesn’t conflict with anything on the admin side.