building your first wordpress plugin

Download Building your first WordPress plugin

If you can't read please download the document

Upload: justin-foell

Post on 16-Apr-2017

1.506 views

Category:

Education


2 download

TRANSCRIPT

Keyboard

Building your first
WordPress plugin

Justin Foell

Developer at 9seeds

[email protected]

@justinfoell

I found some sweet code,
where does it go?

Let's look at an example: admin bar

Pitfalls of adding it to functions.php

When should code go in a theme's functions.php?

One question:Would you still want the feature if the theme was changed?

If YES, put it in a plugin

If NO, you can put it in functions.php, but consider renaming the theme or creating a child theme to avoid upgrade issues

Holy crap! Plugins sound hard!

Writing a Plugin Documentation

Let's start with the bare minimum

Who knows how to type?

You can build a plugin!

myplugin.php