Resources to learn OOP for WordPress plugins, custom post types, etc

Question

In a plugin, I need to create a custom post type and the associated admin menu modifications with a class rather than procedural code. What is the basic skeleton that I need to build off of in order to do so, and how does that class get hooked into WordPress (i.e., how do I do the “add_action(‘init’,’register_my_custom_post_type’), etc. with a class)?

0
, philosophyguy 8 years 2013-10-05T10:21:51-05:00 0 Answers 72 views 0

Leave an answer

Browse
Browse