Skip to content

Instantly share code, notes, and snippets.

🍻
Writing the codes, pushing the fixes

Jamie Schembri shkm

🍻
Writing the codes, pushing the fixes
Block or report user

Report or block shkm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shkm
shkm / register_post_type.sublime-snippet
Created May 3, 2012 — forked from ninnypants/cpt.sublime-snippet
register_post_type snippet for Sublime Text 2
View register_post_type.sublime-snippet
<snippet>
<content><![CDATA[
register_post_type('${1:slug}', array(
${2:'labels' => array(
${3:'name' => _x( '${4:Plural Name}', '${5:translation context}', '${6:translation domain}' ),}
${8:'singular_name' => _x( '${9:Singular Name}', '${10:translation context}', '${6:translation domain}' ),}
${11:'add_new' => _x( '${12:Add new}', '$9', '${6:translation domain}' ),}
${13:'add_new_item' => __( '$12 $9', '${6:translation domain}' ),}
${14:'edit_item' => __( 'Edit ${15:$9}', '${6:translation domain}' ),}
${16:'new_item' => __( 'New ${17:$9}', '${6:translation domain}' ),}
You can’t perform that action at this time.