Skip to content

Instantly share code, notes, and snippets.

@bonsak
bonsak / register_post.sublime-snippet
Created October 3, 2013 16:48
Sublime Text WP Register Post Type Snippet
<snippet>
<content><![CDATA[
// Register Custom Post Type
function ${1:custom_post_type}() {
\$labels = array(
'name' => _x( '${2:post_type}s', 'Post Type General Name', '${3:text_domain}' ),
'singular_name' => _x( '${2:post_type}', 'Post Type Singular Name', '${3:text_domain}' ),
'menu_name' => __( '${2:post_type}', '${3:text_domain}' ),
'parent_item_colon' => __( 'Parent ${2:post_type}:', '${3:text_domain}' ),