So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
Upcoming SlideShare
Loading in...5
×
 

So You Want to Build and Release a Plugin? WordCamp Lancaster 2014

on

  • 465 views

My talk from WordCamp Lancaster 2014. Things to implement when preparing a plugin for public release.

My talk from WordCamp Lancaster 2014. Things to implement when preparing a plugin for public release.

Statistics

Views

Total Views
465
Views on SlideShare
445
Embed Views
20

Actions

Likes
0
Downloads
1
Comments
0

2 Embeds 20

https://twitter.com 19
http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

So You Want to Build and Release a Plugin? WordCamp Lancaster 2014 So You Want to Build and Release a Plugin? WordCamp Lancaster 2014 Presentation Transcript

  • SO YOU WANT TO BUILD AND RELEASE A PLUGIN… Ryan Duff WordCamp Lancaster 2014
  • ABOUT ME • Long time WordPress user • Plugin Developer • Meetup Organizer
  • A BIT OF PLUGIN HISTORY
  • my-hacks.php
  • VERSION 1.2 (May 22, 2004)
  • Plugin API
  • THINGS TO CONSIDER
  • YOUR CODE
  • FILTERS
  • apply_filters( $tag, $value, $var ... ) http://codex.wordpress.org/Function_Reference/apply_filters
  • EXAMPLE $query_args = array( 'post_type' => 'books', 'posts_per_page' => 5, 'author' => 3 ); $books = new WP_Query( apply_filters( 'wclanc_books_query', $query_args ) );
  • ACTIONS
  • do_action( $tag, $arg_a, $arg_b, $etc ); http://codex.wordpress.org/Function_Reference/do_action
  • EXAMPLE do_action( 'wclanc_books_before' ); echo '<div class="wclanc_books">'; while( $books->have_posts() ) : $books->the_post() echo '<div class="wclanc_book">'; do_action( 'wclanc_before_book_title', get_the_ID() ); echo '<h3 class="wclanc_book_title">' . get_the_title() . '</h3>'; do_action( 'wclanc_after_book_title', get_the_ID() ); echo '</div>'; endwhile; echo '</div>'; do_action( 'wclanc_books_after' );
  • INTERNATIONALIZATION
  • EXAMPLE /* * Plugin Name: i18n Test * Author: Ryan Duff * Text Domain: wclanc-i18n */ $text = __( ‘This is a test', ‘wclanc-i18n' ); _e( ‘This test will echo', ‘wclanc-i18n' ); https://codex.wordpress.org/I18n_for_WordPress_Developers
  • PLUGIN SETTINGS http://themeoptions.wordpress.com/
  • OTHER CONSIDERATIONS • Code style • Documentation • Errors
  • PLUGIN LICENSE
  • COMMON LICENSES • GPL v2/v3 • MIT (X11) • Apache License v2 • WTFPL v2 1) http://wordpress.org/plugins/about/ 2) http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses
  • PLUGIN HOSTING
  • • WordPress.org • GitHub • Both?
  • QUESTIONS?
  • RYAN DUFF RYAN@FUSIONIZED.COM @RYANCDUFF