Advertisement
Guest User

Untitled

a guest
May 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. /**
  3. * Display "Post Options" meta box when
  4. * editing custom post types, foo and bar.
  5. */
  6. function my_post_meta( $setup ) {
  7.  
  8. $setup['config']['page'][] = 'foo';
  9. $setup['config']['page'][] = 'bar';
  10.  
  11. return $setup;
  12. }
  13. add_filter('themeblvd_post_meta', 'my_post_meta');
  14.  
  15. /**
  16. * Allow "epic thumbnail" to work on custom
  17. * post types, foo and bar.
  18. */
  19. function my_epic_thumb_types( $post_types ) {
  20.  
  21. $post_types[] = 'foo';
  22. $post_types[] = 'bar';
  23.  
  24. return $post_types;
  25. }
  26. add_filter('themeblvd_epic_thumb_types', 'my_epic_thumb_types');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement