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 19K
  • Win 14K
  • OS X 4K
  • Linux 2K
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 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 15 12 17 14 11 12 13 17 19 15 19 19 16 25 23 9 18 20 19 13 33 12 12 20 19 14 16 15 17 16 23 21 16 16 11 14 17 20 15 15 14 17 12 12 18 16
OS X 10 0 3 4 4 3 3 7 7 2 7 2 3 1 4 1 4 1 3 1 1 5 6 5 5 3 3 2 6 4 3 4 2 1 1 11 4 3 3 3 2 1 3 6 2 4
Linux 2 2 2 0 2 0 3 0 2 1 1 0 2 2 0 2 2 1 1 0 4 0 1 2 0 1 3 3 1 0 1 1 1 2 2 2 4 6 4 2 0 1 1 6 3 5

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