/atom-wp-dev

Snippets for WordPress development using Atom.

Primary LanguageCoffeeScriptMIT LicenseMIT

wp-dev package

A set of snippets for WordPress developments. Covers many of the more common things needed for plugin and theme development like registering custom post types, taxonomies, and metaboxes, the Settings API, and Customizer panels, sections, and controls.

Snippets List

Customizer

  • Panel - wpcp
  • Section - wpcs
  • Text Field - wpct
  • URL Field - wpcu
  • Email Field - wpce
  • Date Field - wpcd
  • Checkbox Field - wpcc
  • Password Field - wpcpw
  • Radios Field - wpcr
  • Select Field - wpcsel
  • Textarea Field - wpcta
  • Range Field - wpcrange
  • Page Select Field - wpcpage
  • Color Chooser Field - wpccolor
  • File Upload Field - wpcfile
  • Image Upload Field - wpcimg
  • Media Upload Field - wpcmedia
  • Cropped Image Field - wpccrop
  • Country Select Field - wpccountry
  • US States Select Field - wpcus
  • Canadian States Select Field - wpccanada
  • Australian States Select Field - wpcaus
  • Basic Javascript Text Bind Code - wpcjs

Settings API & Admin Functions

  • Register Setting - wpsetting
  • Register Settings Section - wpsetsection
  • Register Settings Field - wpsetfield
  • Add Top-Level Admin Menu - wpam
  • Add Admin Sub-menu - wpasub
  • Enqueue Script - wpscript
  • Enqueue Style - wpstyle
  • Load Plugin Text Domain - wpi18n
  • Add Metabox - wpmb

Debugging

  • PHP - showmephp
  • JS - showmejs

Theme development

  • Loop - wploop

Custom Post Types & taxonomies

  • Register Post Type - wpcpt
  • Register Taxonomy - wptax