Every repository with this icon (
Every repository with this icon (
Home
Welcome to the *WordPress.tmbundle * Wiki!
This is a TextMate bundle aimed at making development on WordPress a little easier. We work with WordPress every day, so we’ve got an investment in making this better. Its gonna start off slow, but hopefully get rolling quickly.
Features
- Kept up to date with the current release of WordPress.
- WordPress function completion.
- Tab completion for common WordPress actions, filters and templates.
- Pre-loaded lists of query vars, actions, filters, submenus, etc… so you don’t have to break from coding to look up a variable
- Templates for Microformat -enabled posts and comments, dynamic sidebars and comment forms and more.
- Auto completion of Carrington Theme Framework functions
- & more to come, including the WPMU specific functions ;)
Function completion
Autocomplete of all the built in WordPress functions using ctl-shift-escape as the trigger. Please note that this has changed from the previous ctl-option-escape due to a weird Snow Leopard incompatibility.
Function definition
Provides tool-tips with the function definition and a path to the file and line number where the function was defined. Set the carat in or select the function name to be defined and use command-shift-h to view the tool-tip.
Tab Completions
There are currently tab completions for many common WordPress Tasks:
add_action...- complete list of WordPress actions available via autocomplete
add_filter...- complete list of WordPress filters available via autocomplete
add_submenu...- add an admin submenu page
admin_menu...- select from a list of menu types, including submenu
bloginfo...- inserts a bloginfo function call and shows a list of available return values
const...(could probably use a better tab trigger to avoid potential overlap with other bundles)- autocomplete for Constants defined in WordPress (this includes inside included classes like phpMailer & Snoopy)
cfct...- autocomplete Carrington Framework function
enqueue...- script, style, script from plugin, script from theme
esc_...- short autocomplete of just the esc_ functions new in WordPress 2.8
get_bloginfo...- same as bloginfo, but auto-prefixed for the non-echo “get” version
get_...- a short autocomplete list of just the get_ functions
get_posts...- quick start a get_posts command
is_...- autocomplete for is_ prefixed functions
pv...- autocomplete for $post object members
qv...- a helper that inserts query vars as key => value array items
the_...- a short autocomplete list of just the the_ functions
user_can...- autocompletion of user roles for current_user_can
wpdb...- autocomplete $wpdb members and methods
wp_...- a short autocomplete list of just the wp_ functions
wp_query...- autocomplete WP_Query methods and members
- query_vars triggers an autocomplete of query vars in the proper array_syntax
- more added every day
Templates
Currently available templates:
- Post
- Sidebar
- Comment
- Comment Form
- Header
- The Loop
- Widget & Widget Control
- For WordPress 2.8+ (Courtesy Mark Jaquith)
- Deprecated version for WordPress < 2.8







