WordPress Plugin Development Cookbook
Second Edition
Create powerful plugins to extend the world's most popular CMS
Yannick Lefebvre
BIRMINGHAM - MUMBAI
WordPress Plugin Development Cookbook
Second Edition
Copyright 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2012
Second edition: July 2017
Production reference: 1140717
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78829-118-7
www.packtpub.com
Credits
Author Yannick Lefebvre | Copy Editor Akshada Lobo |
Reviewers Cyril Pierron Ardian Yuli Setyanto | Project Coordinator Ritika Manoj |
Commissioning Editor Smeet Thakkar | Proofreader Safis Editing |
Acquisition Editor Shweta Pant | Indexer Mariammal Chettiyar |
Content Development Editor Arun Nadar | Graphics Jason Monteiro |
Technical Editor Ralph Rosario | Production Coordinator Shantanu Zagade |
About the Author
Yannick Lefebvre is a plugin developer who has published eight projects to the official WordPress repository. His first creation, Link Library, has been used on thousands of sites around the world. With a background in Computer Science and working for CM Labs Simulations a company providing software tools and simulators for vehicle and heavy equipment simulation he started writing plugins for his own WordPress site in 2004 and quickly started sharing his creations with the community. He is actively involved in the Montreal WordPress community, has presented multiple times at WordCamp Montreal, and offers WordPress plugin development services. You can find out more about him and his plugins on his website, Yannick's Corner.
I would like to thank the WordCamp Montreal organizers for giving me a chance to speak at multiple editions of the event, for creating great videos of the presentations, and giving me the opportunity to get involved in the community. This project would not have existed without them.
I would also like to thank Richard Archambault for his great feedback and encouragement while I wrote the first edition of this book, as well as the entire Packt Publishing team for proposing this great project to me, supporting me through the entire process, and coming back to me to put together this second edition.
Finally, I would like to thank my parents for always believing in me and encouraging me in all my projects.
About the Reviewers
Cyril Pierron is a tech-savvy, life-curious engineer. He started programming at the age of 8. He worked in the telecommunications industry for 13 years, leading network value added service application development. Since 2011 he has been working as an ecommerce solution architect, supporting customers and partners, building transactional sites on Salesforce Commerce Cloud platform. He is married and the father of a lovely 7-year old girl.
As an ecommerce expert, Cyril has witnessed over the past few years the convergence of content sites and online stores into one unified experience for the consumer. He has integrated with various content management platforms in the context of his projects.
I would like to thank Packt Publishing for giving me the opportunity to work on this book as a reviewer. I would also like to thank Yannick Lefebvre, who did a wonderful job writing it, and my wife, who showed quite a lot of patience and support as I kept working on this book after hours.
Content management systems (CMS) are key for brands to share information and reach out to their communities and fans. WordPress is a reference in the CMS world, one of the best known systems in the market. This book will definitely help plugin developers quickly start building on it.
Ardian Yuli Setyanto, S.Kom, has played with programming since in high school. He joined national selection for Tim Olimpiade Komputer Indonesia (TOKI, Indonesia Computer Olympiad Team) in 2002 and 2003, which convinced him to study computer science at Gadjah Mada University (UGM), and he graduated in 2009 firstly among his other friends with a score 3.5/4.
He also used WordPress as his essay topic for bachelor degree, he developed his own plugin and combined it with a GSM phone to read and send SMS, instead of the usual email, to manage WordPress comments in his essay. After graduating from university, he start working as freelancer using WordPress and Prestashop. These CMS are widely used in his home country, Indonesia.
Now he is working as a backend developer using Symfony2, Rails, and Sinatra. You can reach him on Twitter: @ardianys.
I would like to thank Packt for giving me this wonderful opportunity as a reviewer on their book once again. I would like to thank Arun Nadar, who assisted me while I was reviewing Yannick's wonderful content. I would also like to thank my family, Niela, Nain, Nusa, and Mazaya. All praise to God.
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com .
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Next page