New property for WP_Post?
Closed this issue · 4 comments
glueckpress commented
Ultimately, this plugin aims to be integrated into WordPress Core.
The most proper way I can think of how a Post Language feature should be implemented was to add a new property post_language
to WP_Post
.
But obviously that’s not possible for a plugin. How would we deal with that?
bueltge commented
The class WP_Post is final.
For a plugin is the way about custom fields easier to enhance the post.
glueckpress commented
That’s that. :)
glueckpress commented
That’s not it, though. Despite the fact we can’t extend WP_Post
from a plugin, post_language
should still be implemented as a property of WP_Post
.
cfoellmann commented
You are right. Feature-as-a-plugin is the new way but just not possible in this case.
There were new features in the past too, right 😉