English | 305 pages | Cosmos Elijah (December 28, 2020) | ASIN:‎ B08RHF9KKY | EPUB | 3.52 Mb

By picking up this book, there's a good chance that you fall into one of two categories: an existing WordPress user / hobbyist programmer who is interested in building your own plugins for the platform, or a seasoned developer who is new to WordPress and need to complete a project for a client.
In either case, this book is designed to help you along the way. If you can code your own plugins, you can make WordPress do just about anything. By learning how to tap into the additional power and functionality that plugins provide, you can make your site easier to administer, add new features, or even alter the very nature of how WordPress works. Written with the WordPress version 3 in mind, this book will show you how to build a variety of plugins that demonstrate the additional power available to you as a plugin author.
Throughout this book, our goal is to teach you all aspects of modern WordPress development. We will build a variety of WordPress plugins and follow their creation from the idea to the finishing touches. You will discover how to deconstruct an existing plugin, use the WordPress API in typical scenarios, hook into the database, version your code with SVN, and deploy your new plugin to the world.
We have plenty of work to do, so let's get started!
What this book covers
Chapter 1, Preparing for WordPress Development, provides an overview of the development process and discusses a number of tools and practices recommended for a successful WordPress development environment.
Chapter 2, Anatomy of a Plugin, breaks an existing plugin down into its component parts to see what makes it work, and what makes it break.
Preface
Chapter 3, Social Bookmarking, walks through the development of an initial plugin, including how to tie into the WordPress API, how to trigger functions, and how to include external JavaScript files.
Chapter 4, Ajax Search, covers the construction of a plugin that augments WordPress' built-in search capability. This chapter provides details on how to utilize Ajax and JQuery, as well as how to use the PHP library classes with static functions in our plugins.
Chapter 5, Content Rotator, explores the wonderful world of WordPress widgets. In this chapter we will show you how to build and manipulate a widget, as well as how to construct a personal preference page for your plugin.
Chapter 6, Standardized Custom Content, begins the process of extending WordPress' usage as a content management system. We will cover how to alter and extend custom fields and how to display custom content in your templates.
Chapter 7, Custom Post Types, continues the discussion on extending WordPress as a CMS. We will also discuss working with shortcodes, and how to customize your plugin by creating custom menus and administration panels in the Dashboard.
Chapter 8, Versioning Your Code with Subversion (SVN), shows you how to maintain and manage your plugin code with a version control system.
Chapter 9, Preparing Your Plugin for Distribution, takes the next logical step in making sure your shiny new plugins are ready for the wider world. We will discuss how to avoid certain pitfalls by writing custom tests to check for failure points.
Chapter 10, Publishing Your Plugin, covers the mechanics of officially making your masterpiece available to the public, including the topics of internationalization, using the WordPress SVN repository, and handling the ubiquitous readme.txt file.
Appendix A, Recommended Resources, lists some of our favorite websites, books, and other resources for seeking additional knowledge or getting help with a specific problem.
Appendix B, WordPress API Reference, provides a compendium of functions, actions, and filters referenced in this book.
What you need for this book
To develop plugins for WordPress, all you really need is a text editor, a working installation of WordPress, and your favorite (s)FTP program. Other tools, such as a MySQL editor, can make your life easier, but are optional.
DOWNLOAD