Book description
Build powerful, interactive plug-ins for your blog and to share online
- Everything you need to create and distribute your own plug-ins following WordPress coding standards
- Walk through the development of six complete, feature-rich, real-world plug-ins that are being used by thousands of WP users
- Written by Vladimir Prelovac, WordPress expert and developer of WordPress plug-ins such as Smart YouTube and Plugin Central
- Part of Packt's Beginners Guide series: expect step-by-step instructions with an emphasis on experimentation and tweaking code
In Detail
If you can write WordPress plug-ins, you can make WordPress do just about anything. From making the site easier to administer, to adding the odd tweak or new feature, to completely changing the way your blog works, plug-ins are the method WordPress offers to customize and extend its functionality. This book will show you how to build all sorts of WordPress plug-ins: admin plug-ins, Widgets, plug-ins that alter your post output, present custom "views" of your blog, and more.
WordPress Plug-in Development (Beginner’s Guide) focuses on teaching you all aspects of modern WordPress development. The book uses real and published WordPress plug-ins and follows their creation from the idea to the finishing touches, in a series of carefully picked, easy-to-follow tutorials. You will discover how to use the WordPress API in all typical situations, from displaying output on the site in the beginning to turning WordPress into a CMS in the last chapter. In Chapters 2 to 7 you will develop six concrete plug-ins and conquer all aspects of WordPress development.
Each new chapter and each new plug-in introduces different features of WordPress and how to put them to good use, allowing you to gradually advance your knowledge. This book is written as a guide to take your WordPress skills from the very beginning to the level where you are able to completely understand how WordPress works and how you can use it to your advantage.
Table of contents
- WordPress Plugin Development
- Credits
- About the Author
- About the Reviewer
- Preface
- 1. Preparing for WordPress Development
-
2. 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
-
3. 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
-
4. 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
-
5. 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
-
6. 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
-
7. 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
-
8. 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
Product information
- Title: WordPress Plugin Development
- Author(s):
- Release date: February 2009
- Publisher(s): Packt Publishing
- ISBN: 9781847193599
You might also like
book
WordPress Plugin Development Cookbook - Second Edition
Learn to create plugins for WordPress 4.x to deliver custom projects or share with the community …
book
WordPress Plugin Development Cookbook - Third Edition
Create plugins for WordPress through detailed recipes that cover the creation of shortcodes, custom post types, …
book
WordPress Absolute Beginner’s Guide
More than 70 million websites and blogs run on WordPress: it's the world's #1 web development …
book
Wordpress Web Application Development - Third Edition
Learn in easy stages how to rapidly build leading-edge web applications from scratch. About This Book …