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