Created
March 10, 2012 16:57
-
-
Save kachi/2012066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'foo_custom_init'); | |
function foo_custom_init() | |
{ | |
$args = array( | |
'exclude_from_search' => true, // ここでtrueを指定する | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'query_var' => true, | |
'rewrite' => true, | |
'capability_type' => 'post', | |
'has_archive' => true, | |
'hierarchical' => false, | |
'menu_position' => null, | |
'supports' => array('title','editor','author','thumbnail','excerpt','comments') | |
); | |
register_post_type('foo',$args); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment