Tuesday, July 12, 2022
HomeWordPress DevelopmentHow do I handle customized meta in put up revisions within the...

How do I handle customized meta in put up revisions within the Block Editor period?


Notice to admins: I’ve been trawling each potential useful resource for this however can not discover a good reply for contemporary WordPress, so please do not mark this as a reproduction of (“insert some reply from 2012 right here”). I’ve seen the article by John Blackbourn however it’s from a very totally different period of WordPress.

I’m utilizing a meta block to retailer customized meta towards a customized put up sort as per the advisable WordPress fashionable method within the developer information. It really works completely, however the meta block content material just isn’t saved with the revisions. And the developer information says nothing about making the meta appropriate with revisions (not less than not in that article about meta containers).

Once I assessment the revisions within the Revisions UI, I can see the meta block uncooked JSON there delimiting the meta block, however there isn’t a content material.

I’m simply questioning if anybody is aware of what greatest follow for getting customized meta to be appropriate with put up revisions is now that the calls to replace meta are executed by way of REST?

And the way can we see the adjustments to the meta within the revision screens?

Any assist gladly obtained as I’m discovering it laborious to get up-to-date info on the easiest way to do that.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments