Integrate with wordpress to update / create pages

Hi again y’all,

Okay so I’ve been doing a bit of toying with webhooks in SuiteCRM, have it working pretty well to grab info from Stripe on a purchase and through a few logic hooks and such it’ll create a user in Suite.
We were looking at trying to tie in something like LinkTree, but realized that the template control there doesn’t exist so we’ll just built it out from scratch with html/css. I’ve built out a few things in logic hooks where it’ll write out a custom php logic hook file and have a pretty decent start on what the html / css look like. The CSS will be a static file at this point on the wordpress side of things so what I’m really going for here is:

After Save logic hook on user-
Grabs image, and whatever custom fields such as Linked in url, FB url, etc from the users module. This then creates / recreates and replaces an HTML file (named as the user’s id.html) on the wordpress site. 95% of this HTML file is static, the rest fills from variables from the user profile so if they update their linked in url or something, it’ll recreate the file showing that change.

Real issue here - how do I get this file pushed over to wordpress from the logic hook?

I have the public_html file and such, and have tested building out the page just from dropping the files in there manually. But currently the SuiteCRM files are under the public_html folder… this may also change as I’m looking at moving to a larger host instead of just personal wordpress hosting when we deploy. Is there a way to go above root on the file structure somehow… or do I need to manage this on a different task like automating FTP file moves?

Note - I’ve also seen a few people mention storing the HTML data in the database so if someone pulls up a record like www.mycrminstance.com/Links/userid123142 it’ll pull the data direct from the database to cover the variables. Problem here is we want people that don’t have CRM access to be able to access these pages.

Thanks!

You can create a Custom EntryPoint that passes user ID and the page is generated automatically i.e. The Contents of the Page are populated with the User ID that is passed.