-
We need to have a way to update fields in the RankMath metabox via javascript – e.g., set the Snippet title/description on the press of a button.
It’s easy to set the input field value of those fields. Our problem is that the snippet preview is not updated until we save the post.
Can you point me to a JS documentation or tell us which function can be used to refresh the Snippet in the metabox?
Here’s the JS code we have right now:
jQuery("[name=rank_math_title]").val('New value');
Thanks! Philipp 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The ticket ‘How can I change post settings via JS?’ is closed to new replies.