• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

wp-dev

Snippets for WordPress development.
  • #wordpress
  • #snippets
  • #theme
  • #plugin
slushman
0.3.5 4,957
18
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by