• Resolved grayzee

    (@grayzee)


    Hello,

    If I create or edit a post on the front end of our website… it does not get sent to Salesforce via your plugin? How ever in the admin area, if I go to the same post that was edited on the front end and click update/publish from the admin area it sends the data to Salesforce instantly.

    Im using ACF Front end forms to edit and create posts on the front end of our website.

    Is there any sort of cron that runs to update all the posts at a certain time for example? It’s a bit of an issue if data wont send to Salesforce when edits are made on the front end and do you have any ideas to a possible solution?

    Many thanks,
    Graeme

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    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.

    Thread Starter grayzee

    (@grayzee)

    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?

    Thread Starter grayzee

    (@grayzee)

    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.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    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.

    Thread Starter grayzee

    (@grayzee)

    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?

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    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.

    Thread Starter grayzee

    (@grayzee)

    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!

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Front End Editing Vs Admin updates’ is closed to new replies.