WP MVC – metabox functionality
-
I am developing wordpress plugin. I need to use metabox for certain needs. How can i accomplish this using WP MVC? Currently i am using the wordpress add_meta_box() function in the main file of the plugin. Since this is specific to a particular model, i need to rearrange the code accordingly.
// Add meta box function example_add_box() { global $meta_box; global $post; add_meta_box($meta_box['id'], $meta_box['title'], 'example_product_box', $meta_box['page'], $meta_box['context'], $meta_box['priority'],'add_my_meta_box'); }
And I have added too many lines of coding for box definition, register post type, save box data etc..
I need to simplify the coding and achieve the very purpose of using the WP MVC framework. Can anyone help me in this regard? Thanks.
- The topic ‘WP MVC – metabox functionality’ is closed to new replies.