Professional WordPress Plugin Development

Kobo eBook available

read instantly on your Kobo or tablet.

buy the ebook now

Professional WordPress Plugin Development

by Brad Williams, Justin Tadlock, Ozh Richard

Wiley | March 15, 2011 | Trade Paperback

Not yet rated | write a review
Taking WordPress to the next level with advanced plugin development

WordPress is used to create self-hosted blogs and sites, and it''s fast becoming the most popular content management system (CMS) on the Web. Now you can extend it for personal, corporate and enterprise use with advanced plugins and this professional development guide. Learn how to create plugins using the WordPress plugin API: utilize hooks, store custom settings, craft translation files, secure your plugins, set custom user roles, integrate widgets, work with JavaScript and AJAX, create custom post types. You''ll find a practical, solutions-based approach, lots of helpful examples, and plenty of code you can incorporate!

  • Shows you how to develop advanced plugins for the most popular CMS platform today, WordPress
  • Covers plugin fundamentals, how to create and customize hooks, internationalizing your site with translation files, securing plugins, how to create customer users, and ways to lock down specific areas for use in corporate settings
  • Delves into advanced topics, including creating widgets and metaboxes, debugging, using JavaScript and AJAX, Cron integration, custom post types, short codes, multi site functions, and working with the HTTP API
  • Includes pointers on how to debug, profile and optimize your code, and how to market your custom plugin

Learn advanced plugin techniques and extend WordPress into the corporate environment.

Format: Trade Paperback

Dimensions: 552 pages, 9.3 × 7.4 × 1 in

Published: March 15, 2011

Publisher: Wiley

Language: English

The following ISBNs are associated with this title:

ISBN - 10: 0470916222

ISBN - 13: 9780470916223

save 37%

  • In stock online

$35.63  ea

Online Price

$53.99 List Price

eGift this item

Give this item in the form of an eGift Card.

+ what is this?

This item is eligible for FREE SHIPPING on orders over $25.
See details

Easy, FREE returns. See details

Item can only be shipped in Canada

Downloads instantly to your kobo or other ereading device. See details

All available formats:

Reviews

– More About This Product –

Professional WordPress Plugin Development

by Brad Williams, Justin Tadlock, Ozh Richard

Format: Trade Paperback

Dimensions: 552 pages, 9.3 × 7.4 × 1 in

Published: March 15, 2011

Publisher: Wiley

Language: English

The following ISBNs are associated with this title:

ISBN - 10: 0470916222

ISBN - 13: 9780470916223

Table of Contents

FOREWORD xxi INTRODUCTION xxiii CHAPTER 1: AN INTRODUCTION TO PLUGINS 1 What Is a Plugin? 1 Available Plugins 3 Advantages of Plugins 5 Installing and Managing Plugins 7 Summary 10 CHAPTER 2: PLUGIN FOUNDATION 11 Creating a Plugin File 11 Sanity Practices 12 Header Requirements 14 Determining Paths 15 Activate/Deactivate Functions 18 Uninstall Methods 20 Coding Standards 22 Plugin Development Checklist 26 Summary 27 CHAPTER 3: HOOKS 29 Actions 30 Filters 39 Using Hooks from Within a Class 51 Creating Custom Hooks 52 How to Find Hooks 55 Summary 57 CHAPTER 4: INTEGRATING IN WORDPRESS 59 Adding Menus and Submenus 59 Creating Widgets 63 Meta Boxes 79 Keeping It Consistent 90 Summary 96 CHAPTER 5: INTERNATIONALIZATION 97 Internationalization and Localization 97 Creating Translation Files 113 Summary 115 CHAPTER 6: PLUGIN SECURITY 117 Securing Your Plugin 117 User Permissions 118 Nonces 120 Data Validation and Sanitization 127 Formatting SQL Statements 149 Security Good Habits 160 Summary 161 CHAPTER 7: PLUGIN SETTINGS 163 The Options API 163 The Settings API 169 The Transients API 180 Saving Per-User Settings 183 Storing Data in Custom Tables 191 Summary 196 CHAPTER 8: USERS 197 Working with Users 198 Roles and Capabilities 219 Limiting Access 221 Customizing Roles 229 Summary 236 CHAPTER 9: HTTP API 237 HTTP Requests Crash Course 237 WordPress’ HTTP Functions 242 Practice: Reading JSON from a Remote API 255 Practice: Sending Data to a Remote API 259 Practice: Reading Arbit
read more read less

From the Publisher

Taking WordPress to the next level with advanced plugin development

WordPress is used to create self-hosted blogs and sites, and it''s fast becoming the most popular content management system (CMS) on the Web. Now you can extend it for personal, corporate and enterprise use with advanced plugins and this professional development guide. Learn how to create plugins using the WordPress plugin API: utilize hooks, store custom settings, craft translation files, secure your plugins, set custom user roles, integrate widgets, work with JavaScript and AJAX, create custom post types. You''ll find a practical, solutions-based approach, lots of helpful examples, and plenty of code you can incorporate!

  • Shows you how to develop advanced plugins for the most popular CMS platform today, WordPress
  • Covers plugin fundamentals, how to create and customize hooks, internationalizing your site with translation files, securing plugins, how to create customer users, and ways to lock down specific areas for use in corporate settings
  • Delves into advanced topics, including creating widgets and metaboxes, debugging, using JavaScript and AJAX, Cron integration, custom post types, short codes, multi site functions, and working with the HTTP API
  • Includes pointers on how to debug, profile and optimize your code, and how to market your custom plugin

Learn advanced plugin techniques and extend WordPress into the corporate environment.

From the Jacket

Take WordPress to the next level with advanced plugin development

As one of the most popular open source content management systems available today, WordPress boasts a framework that allows you to easily customize and extend it through plugins. This comprehensive book shows you how plugins work, reviews the tools and APIs in WordPress, and demonstrates how to extend the functionality of WordPress with plugins. The trio of authors provides a practical, solutions-based approach along with a collection of timely examples and plenty of code, all aimed at clearly explaining how to create a plugin file, work with users, integrate widgets, add menus and submenus, secure your plugins, and more. You will quickly come to understand how to develop custom plugins so that you can take WordPress to the next corporate and enterprise level.

Professional WordPress Plugin Development:

  • Details the range of complexity in plugins, from a very simple social networking plugin to an extremely elaborate e-commerce package

  • Addresses how to integrate into WordPress, save settings, create widgets and shortcodes, and implement uninstall

  • Unveils the proper techniques for storing data, customizing user roles, and implementing security best practices

  • Shares procedures for using custom post types and creating and using custom taxonomies

  • Explores the HTTP API, JavaScript® and Ajax, Cron, the Rewrite API, and more

wrox.com Programmer Forums

Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads

Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More

Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.

About the Author

Brad Williams is the CEO and cofounder of webdevstudios.com. He is a coauthor of Professional WordPress.

Ozh Richard has released a number of popular WordPress plugins and won an Annual WordPress Plugin Competition.

Justin Tadlock has developed numerous plugins and teaches users how to use plugins and themes at his WordPress site ThemeHybrid.com.