Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text snippet: WordPress register_extended_post_type PHP
<snippet>
<content><![CDATA[
${1: if ( function_exists( 'register_extended_post_type' ) ) \{
}${3: } register_extended_post_type(
${3: } '${4:name}',
${3: } array(
${3: }${16: ${5:'capability_type' => 'post',
${3: } }${6:'hierarchical' => false,
${3: } }${7:'menu_position' => ${8:99},
${3: } }${9:'public' => false,
${3: } }${10:'publicly_queryable' => false,
${3: } }'right_now' => true,
${3: } ${11:'show_ui' => true,
${3: } }${12:'supports' => array( 'title', 'editor' ),
${3: } }${13:'featured_image' => '$14'}${15:,
${3: } }
${3: }} )
${3: } );
${2:
\}}]]></content>
<tabTrigger>lwprept</tabTrigger>
<scope>source.php</scope>
<description>register_extended_post_type (Lumpy WordPress PHP)</description>
</snippet>
@lumpysimon

This comment has been minimized.

Copy link
Owner Author

@lumpysimon lumpysimon commented Mar 21, 2013

Step 16 selects all array elements so that alignment can be done with Ctrl-Alt-A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.