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

Word​Press Snippets

by Dartui ALL Trending

Wordpress Snippets for Sublime Text 3

Details

Installs

  • Total 28K
  • Win 20K
  • Mac 5K
  • Linux 3K
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 Mar 9
Windows 3 11 11 10 13 3 7 8 5 7 7 4 5 8 6 7 7 10 10 2 10 10 10 7 11 3 4 5 5 12 5 6 7 5 7 7 12 13 10 12 3 4 7 9 12 12
Mac 0 4 0 0 0 0 0 1 1 2 0 2 0 1 1 1 1 2 0 1 0 1 0 2 1 1 3 0 2 2 1 2 2 2 2 0 1 3 1 0 1 0 1 1 0 1
Linux 1 1 3 2 0 0 1 1 0 1 2 1 0 1 1 0 0 0 1 3 2 1 0 3 0 1 1 1 0 1 2 1 0 1 3 1 1 2 3 1 0 1 0 1 0 0

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