Get site Yoast metas after updating them
-
Hi! I’m trying to access homepage metadata immediatly after having updated it from the admin panel.
I’m aware ofupdate_option_wpseo, update_option_wpseo_titles, update_option_wpseo_social
hooks, but one of them –update_option_wpseo_titles
– does not allow me to access the recently updated metas throughYoastSEO()->meta->for_url(...)->whatever
. If I attempt to do it, I obtain the previous, non updated data. I have also tried to useupdateD_option_wpseo_titles
, but to no avail.
Right now, Im working around it using the admin_init hook, but I don’t feel this is an optimal solution.
Is there any trick do to this that I’m missing?
Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get site Yoast metas after updating them’ is closed to new replies.