Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('admin_menu','my_admin_menu');
- function my_admin_menu() {
- $post_options = new thesis_post_options;
- $post_options->meta_boxes();
- foreach ($post_options->meta_boxes as $meta_name => $meta_box)
- {
- add_meta_box($meta_box['id'], $meta_box['title'], array('thesis_post_options', 'output_' . $meta_name . '_box'), 'graphics', 'normal', 'high'); #wp
- }
- add_action('save_post', array('thesis_post_options', 'save_meta')); #wp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement