This is a snippet collection for working with the SuperCPT plugin for WordPress (http://wordpress.org/extend/plugins/super-cpt/)
mkdir -p ~/Library/Application\ Support/TextMate/Bundles/
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone https://github.com/mboynes/super-cpt-bundle.git SuperCPT.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
Add this to your Sublime Packages directory.
This plugin gives you a few snippets for working with the SuperCPT WordPress plugin. Each one is a tab trigger.
scpt
: Add a filter forafter_setup_theme
and check to see if this plugin existscpt
: Add a new Super Custom Post Typetax
: Add a new Super Custom Taxonomyamb
: Add a new meta box for your Super Custom Post Typectat
: Connect one or more Post Types with one or more Taxonomiesicon
: Add an icon for your Custom Post Typecpm
: Create a new Super_Custom_Post_Meta object around an existing post type (e.g. posts)
Matthew Boynes
Copyright 2012 Matthew Boynes
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.