PacktLib: WordPress Plugin Development: Beginner's Guide

WordPress Plugin Development

Credits

About the Author

About the Reviewer

Preface

Preparing for WordPress Development

How will you benefit?

Challenges involved

Plugins developed in this book

Tools for the job

Final notes

Summary

Social Bookmarking

Plugging in your first plugin

Time for action -Create your first plugin

Time for action -Testing the version check

Displaying a Digg button

Time for action -Implement a Digg link

WordPress plugin hooks

Time for action - Use a filter hook

Adding a Digg button using JavaScript code

Time for action -Implement a Digg button

Styling the output

Time for action -Use CSS to position the button

Summary

Live Blogroll

Starting up with the blogroll

Time for action -Roll into the blogroll

jQuery JavaScript library

Time for action -Creating a hover event with jQuery

Time for action -Apply CSS to the popup

Demystifying Ajax

Time for action -Use Ajax to dynamically retrieve feed posts

Time for action -Use advanced Ajax call

Time for action -Add a security nonce

Summary

The Wall

The main concepts behind the Wall plugin

Creating a widget

Time for action -Create a 'Hello World!' widget

Widget controls

Time for action -Expanding the widget with controls

Create a WordPress page from the code

Time for action -Insert a page

Handling user input

Time for action -Create the wall comment form

Managing Ajax comment submit

Time for action -Save the comments

Dynamically load comments

Time for action -Display the comments

Ajax security

Time for action -Display the comments

Summary

Snazzy Archives

Using a class for plugin

Time for action -Create a new plugin class

Showing template output with shortcodes

Time for action -Use a shortcode

Time for action -Create a custom template

Prepare archives

Time for action -Show archives of posts

Apply styling and jQuery to archives

Time for action -Style the archive view

Time for action Use jQuery to allow user interaction

Creating plugin options page

Time for action Create an options page

Use plugin options

Time for action -Apply the plugin options

Caching the plugin output

Time for action -Create archives cache

Summary

Insights for WordPress

Creating custom panels in the editor screen

Time for action -Create a new plugin outline

Searching the posts

Time for action -Display a list of matching posts

Interacting with tinyMCE

Time for action -Insert the link into tinyMCE

Using Flickr API

Time for action -Display Flickr photos

Creating a tinyMCE plugin

Time for action -Adding a button to tinyMCE

Time for action -Open a tinyMCE window

Summary

Post Types

Handling localization

Time for action -Create plugin and add localization

Adding a post template

Time for action -Create 'add photo' post template

Handling file and image uploads

Time for action -Handle uploaded image

Using custom fields

Quick post a link

Time for action -Add link template

Tinkering with WordPress backend menus

Time for action -- Remove 'Link' from the Write page

Programming the Manage panel

Time for action -Add post type column in the Manage panel

Time for action - Add a search filter box

Handling error messages

Time for action -Adding support for errors

User roles and capabilities

Time for action Add user capability checks

Summary

Development Goodies

Creating Localization files

Time for action -- Create a POT file

Time for action -Perform translation

Documentation and support

Time for action -Create a sample plugin readme.txt file

Code management and plugin repository

Time for action -- Manage a local repository using SVN

Promotion

General plugin development guidelines

WordPress MU development

WordPress and GPL

Online resources

Summary