Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction To WordPress Plugin Development

Introduction To WordPress Plugin Development

WordPress Mumbai Meetup

Ajit Bohra

May 06, 2017
Tweet

More Decks by Ajit Bohra

Other Decks in Programming

Transcript

  1. o Prefix everything o Check for Existing Implementations o Variables:

    isset() (includes arrays, objects, etc.) o Functions: function_exists() o Classes: class_exists() o Constants: defined()
  2. [caption] – shortcode that allows you to wrap captions around

    content [gallery] – shortcode that allows you to show image galleries [audio] – shortcode that allows you to embed and play audio files [video] – shortcode that allows you to embed and play video files [playlist] – shortcode that allows you to display collection of audio or video files [embed] – shortcode that allows you to wrap embedded items
  3. Basic Shortcodes [wporg] is your new shortcode. The use of

    the shortcode will trigger the wporg_shortcode callback function.