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