Hello,
Thank you for contacting Rank Math today.
Rank Math updates the metadata in 2 different ways depending on the editor which you are using. In Block Editor, Rank Math updates the metadata using the rest_route. Following is the file path where the rest function is declared: https://github.com/rankmath/seo-by-rank-math/blob/master/includes/rest/class-admin.php#L200
And in Classic Editor, Rank Math uses CMB2 package. So if you want to change any data on update then you can use cmb2_save_field or cmb2_process_fields filter: https://cmb2.io/api//source-class-CMB2_Field.html#593
I hope that helps.
Hi Pratik,
I am using woocommerce and I have around 2000 books as products on my website.
How can I use Categories and Tags as Keywords for all products?
Thanks
Hello,
We are so so sorry but we have no option of automating this.
You have to put in the focus keyword manually. You can test the code suggested here:https://support.rankmath.com/ticket/autofill-term-name-product-category-as-focus-keywords/?view=all and see if you can tweak it to work for you.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.