Adding Custom Content to Yoast Analysis


(Damith) #1

I have added some data using custom fields, custom tables under the content of single post…

But those data are not mentioned on Yoast Analysis… So I wanted to add them.

Seems like I could do it using wpseo_pre_analysis_post_content filter… But it is not supported for new versions according to https://kb.yoast.com/kb/can-i-add-data-to-the-page-analysis/

New versions, you have said that use https://github.com/Yoast/YoastSEO.js/blob/master/README.md

Even I am WP developer I have no idea what is this.

Is there tutorial or documentation?

At least a example to add a custom field values / custom content to Yoast Analysis?

Thanks.


#2

There is an example in the wiki.