-
Hello,
I am using GPT AI to automate the process to generate and update Update Meta Title, Meta Description and Focus Keyword. On post edit page, I have added a button “Generate Snippet” in Rankmath metabox (beside the edit snippet button”. When clicking on this button, it receives response from gpt api and then i am trying to update it in rankmath fields. For eg:-
jQuery(‘textarea#rank-math-editor-description’).val(jQuery.trim(obj.chatgpt_response.meta_description));
jQuery(‘textarea#rank-math-editor-description’).trigger(‘keyup’);I have also tried updating the rankmath json data s below:-
rankMath.assessor.serpData.title=jQuery.trim(obj.chatgpt_response.meta_title);I have also tried various simulation technique to simulate user input But nothing is working. Can you suggest me a solution for this.
However, there are some kind of jugaad which i can do, for example saving the values in hidden input and update rank math meta_key value on save_post hook. But i don’t want to do this since the first approach is more realistic.
Awaiting your response.
Thank You,
Sharique Anwer
The ticket ‘Update RankMath Meta Title, Meta Description and Focus Keyword using jQuery’ is closed to new replies.