Skip to content

Commit

Permalink
Tweaks to the custom_post_type snippet
Browse files Browse the repository at this point in the history
Corrected `publically_queryable` to `publicly_queryable`. Added
localisation domains to `__` function calls.
  • Loading branch information
Simon Wheatley committed Sep 22, 2011
1 parent eceffd9 commit f623e53
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions Snippets/Custom Post Type.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
*/
register_post_type('${2:post_type}', array(
${3:'labels' => array(
'name' => __('${4:name}'),
'singular_name' => __('${5:singular-name}')
'name' => __('${4:name}'${5:, '${6:localisation_domain}'}),
'singular_name' => __('${7:singular-name}'$5)
),}
${6:'description' => __('${7:description}'),}
${8:'public' => ${9:true},}
${10:'exclude_from_search' => ${11:null},}
${12:'publically_queryable' => ${13:null},}
${14:'show_ui' => ${15:true},}
${16:'show_in_nav_menus' => ${17:null},}
${18:'hierarchical' => ${19:false},}
${20:'supports' => array(
${21:'title',}
${22:'editor',}
${23:'comments',}
${24:'revisions',}
${25:'trackbacks',}
${26:'author',}
${27:'excerpt',}
${28:'page-attributes',}
${29:'thumbnail',}
${30:'custom-fields'}
${8:'description' => __('${9:description}'$5),}
${10:'public' => ${11:true},}
${12:'exclude_from_search' => ${13:null},}
${14:'publicly_queryable' => ${15:null},}
${16:'show_ui' => ${17:true},}
${18:'show_in_nav_menus' => ${19:null},}
${20:'hierarchical' => ${21:false},}
${22:'supports' => array(
${23:'title',}
${24:'editor',}
${25:'comments',}
${26:'revisions',}
${27:'trackbacks',}
${28:'author',}
${29:'excerpt',}
${30:'page-attributes',}
${31:'thumbnail',}
${32:'custom-fields'}
),}
${31:'taxonomies' => array(
${32:'post_tag',}
${33:'category',}
${33:'taxonomies' => array(
${34:'post_tag',}
${35:'category',}
),}
${34:'capability_type' => '${35:post}',}
${36:'capabilities' => array(
${36:'capability_type' => '${37:post}',}
${38:'capabilities' => array(
// for fine grained control include valid capabilities here
// if left empty 'capability_type' will define editing capability requirements
),}
Expand Down

0 comments on commit f623e53

Please sign in to comment.