Hi
i want to get content widget from post use gutenberg and update
how i can do that !??
thanks
Hi
i want to get content widget from post use gutenberg and update
how i can do that !??
thanks
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Amine,
This is possible, but it’s quite a complicated process to achieve. We’re unfortunately only able to provide a limited outline due to the complexity of this task. If you’re not very familiar with PHP, I recommend hiring a developer to assist you with this. We recommend using Codeable.
To do this you’ll need to:
Get the post content of the page you wish to update programmatically.
Parse and filter the blocks added to the content until you find the SiteOrigin Layout block.
Process the raw layout of the block and then iterate that layout until you find your widget.
Make your desired changes, and then save the layout (here’s an example of how to do this).
For SEO reasons, you should update the SO Layout Attribute.
Kind regards,
Alex