[wp-hackers] Questions regarding extending WP_Post

Funkatron funkatronic at gmail.com
Wed Dec 4 02:15:27 UTC 2013


It makes so much sense to me to let developers extend this.  Perfect use
case: You create a post type that has custom meta that's common among posts
of that type.  Instead of calling get_post_meta, you extend the WP_Post
class and add a function that formats and returns that meta.  I wanted to
extend the class for that very use case.



--
View this message in context: http://wordpress-hackers.1065353.n5.nabble.com/Questions-regarding-extending-WP-Post-tp42998p43002.html
Sent from the Wordpress Hackers mailing list archive at Nabble.com.


More information about the wp-hackers mailing list