ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Word​Press Snippets

by Dartui ST2/ST3

Wordpress Snippets for Sublime Text 3

Details

Installs

  • Total 12K
  • Win 9K
  • OS X 2K
  • Linux 1K
Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 19 22 10 21 26 16 22 24 26 19 14 20 23 20 19 14 11 16 17 19 23 24 24 14 22 22 24 22 31 20 21 18 20 19 16 26 37 18 18 24 25 24 22 28 18 25
OS X 3 6 2 2 4 5 8 4 6 4 3 8 1 5 7 5 2 5 5 5 1 9 3 3 2 5 3 8 3 5 2 2 6 6 8 3 5 6 0 2 9 6 5 3 3 3
Linux 5 0 1 2 3 2 1 2 2 1 2 0 4 3 1 5 0 1 0 2 1 9 3 2 0 3 3 5 1 3 0 2 4 4 2 6 0 4 2 2 2 4 2 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