WordPress Snippets
Wordpress Snippets for Sublime Text 3
Details
Installs
- Total 33K
- Win 24K
- Mac 5K
- Linux 3K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 1 | 2 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 2 | 1 | 2 | 3 | 1 | 1 | 0 | 2 | 4 | 2 | 1 | 2 | 0 | 0 | 1 | 1 | 2 | 0 | 0 | 2 | 0 | 1 | 1 | 1 | 2 | 0 | 0 | 0 | 2 | 2 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
Wordpress Snippets for Sublime Text 3
Simple snippets for Wordpress elements, such as meta boxes, pages, subpages, post types, taxonomies, etc…
How to use
In PHP scope write wp_
and find snippet you want to use. Each snippet is class-based, so it cannot be used outside of class (e.g. in functions.php).
List of snippets
- wp_plugin_wrapper - class-based wrapper for plugin development
- wp_meta_box - adds meta box for post type with callback
- wp_menu_page - adds menu in admin dashboard with callback
- wp_submenu_page - adds submenu in admin dashboard with callback
- wp_enqueue_scripts - adds action and one line of script
- wp_enqueue_script - adds one line of script