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

Bending WordPress to your Will

Hugh Lashbrooke
September 27, 2017

Bending WordPress to your Will

This is a workshop that I presented at PHP South Africa 2017 - these slides were just the intro and the rest of the workshop was building a basic WordPress plugin.

Hugh Lashbrooke

September 27, 2017
Tweet

More Decks by Hugh Lashbrooke

Other Decks in Technology

Transcript

  1. Headers /* * Plugin Name: Seriously Simple Podcasting * Version:

    1.9.6 * Plugin URI: https://wordpress.org/plugins/seriously-simple-podcasting/ * Description: Podcasting the way it's meant to be. * Author: Hugh Lashbrooke * Author URI: http://www.hughlashbrooke.com/ * Requires at least: 4.0 * Tested up to: 4.2 * * Text Domain: seriously-simple-podcasting * Domain Path: /lang/ */
  2. <?php /* * Plugin Name: Google Redirect * Version: 1.0

    */ add_action( ‘init’, ‘google_redirect’ ); function google_redirect () { if( isset( $_GET[‘google_redirect’] ) ) { wp_redirect( ‘http://www.google.com’, 302 ); exit; } } ?> Bringing it Together