add_action('save_post' .... gutenberg

Hi guys.

I am trying to build a theme and now with gutenberg the add_action(‘save_post’, ‘function_name’), doesn’t seam to work anymore. I am trying to call some update_post_meta when the post is saved but now I see that they use AJAX so is not using the classic form route. Any advice is appreciated it.

Thank you.

For me it looks like this is working fine. I have checked my custom meta data and they works fine - all is updating correctly.

1 Like