Hi @marnyscom
We understand you would like to insert and update the title and meta description programmatically.
We don’t recommend to automatically fill in any sort of SEO data as this won’t be helpful for the websites in the search results. If possible, we always recommend users to take time and manually go through all the pages available on the site for manual optimization as this could really help the website to gain rank in the search results.
With that being said, if you still want to automatically fill up the SEO data, you can try looking for the relevant solution in our documentation on our developer portal here — https://developer.yoast.com/.
Most of our hooks, filters, APIs, and code examples are available on there. We hope this points you in the right direction!
You might also want to consider just using the snippet variables to automatically generate SEO titles and meta descriptions for your content types — https://yoast.com/snippet-variables/
-
This reply was modified 5 years, 1 month ago by
Michael Tiña.
I could change stuff programatically via the wpseo_register_var_replacement function inside my plugin, there’s a tutorial from the web here:
https://maheshwaghmare.com/doc/yoast-seo-custom-template-variable/
@rmisaki Unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.
Thank you for your understanding.
We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.