You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
I'm trying to make a Wordpress plugin support YoastSEO, and I would like to set some values programmatically, but I'm not able to do it.
E.g., to change "Meta description" programmatically, according to my investigation, I suppose the following steps can work:
$("#yoast_wpseo_metadesc").val("Some Value");
window.YoastSEO.app.reloadSnippetText();
or 2. window.YoastSEO.app.refresh();
Hower, the above doesn't work. It looks that the 'window.YoastSEO.app' doesn't have the 'snippetPreview' member might be the cause.
Could anyone help? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered:
I'm trying to make a Wordpress plugin support YoastSEO, and I would like to set some values programmatically, but I'm not able to do it.
E.g., to change "Meta description" programmatically, according to my investigation, I suppose the following steps can work:
or 2. window.YoastSEO.app.refresh();
Hower, the above doesn't work. It looks that the 'window.YoastSEO.app' doesn't have the 'snippetPreview' member might be the cause.
Could anyone help? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: