Advertisement
JPry

Post type support example

May 18th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. // Add custom fields capability to pages
  2. add_action( 'init', 'add_fields_to_pages');
  3. function add_fields_to_pages() {
  4.     add_post_type_support( 'page', 'custom-fields' );
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement