My Account Log in

2 options

WordPress Plugin development cookbook : create powerful plugins to extend the world's most popular CMS / Yannick Lefebvre.

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Lefebvre, Yannick, author.
Language:
English
Subjects (All):
WordPress (Electronic resource).
Blogs--Computer programs.
Blogs.
Web sites--Authoring programs.
Web sites.
Physical Description:
1 online resource (1 volume) : illustrations
Edition:
Second edition.
Place of Publication:
Birmingham, [England] ; Mumbai, [India] : Packt, 2017.
System Details:
text file
Biography/History:
Lefebvre Yannick: Yannick Lefebvre is a plugin developer who has created multiple plugins on the official WordPress repository. His first creation, Link Library, is used on thousands of sites worldwide. With a background in computer science, he wrote his first plugin 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 custom plugin development services. By day, Yannick works for CM Labs Simulations, a company providing software tools and simulators for vehicles and heavy equipment.
Summary:
Learn to create plugins for WordPress 4.x to deliver custom projects or share with the community through detailed step-by-step recipes and code examples About This Book Learn how to change and extend WordPress to perform virtually any task Explore the plugin API through approachable examples and detailed explanations Mold WordPress to your project's needs or transform it to benefit the entire community Who This Book Is For If you are a WordPress user, developer, or a site integrator with basic knowledge of PHP and an interest to create new plugins to address your personal needs, client needs, or share with the community, then this book is for you. What You Will Learn Discover how to register user callbacks with WordPress, forming the basis of plugin creation Explore the creation of administration pages and adding new content management sections through custom post types and custom database tables Improve your plugins by customizing the post and page editors, categories and user profiles, and creating visitor-facing forms Make your pages dynamic using Javascript, AJAX and adding new widgets to the platform Learn how to add support for plugin translation and distribute your work to the WordPress community In Detail WordPress is a popular, powerful, and open Content Management System. Learning how to extend its capabilities allows you to unleash its full potential, whether you're an administrator trying to find the right extension, a developer with a great idea to enhance the platform for the community, or a website developer working to fulfill a client's needs. This book shows readers how to navigate WordPress' vast set of API functions to create high-quality plugins with easy-to-configure administration interfaces. With new recipes and materials updated for the latest versions of WordPress 4.x, this second edition teaches you how to create plugins of varying complexity ranging from a few lines of code to complex extensions that provide intricate new capabilities. You'll start by using the basic mechanisms provided in WordPress to create plugins and execute custom user code. You will then see how to design administration panels, enhance the post editor with custom fields, store custom data, and modify site behavior based on the value of custom fields. You'll safely incorporate dynamic elements on web pages using scripting languages, and build new widgets that users will be able to add to WordPress sidebars and widget areas. By the end of this bo...
Contents:
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: Preparing a Local Development Environment
Introduction
Installing a web server on your computer
How to do it...
How it works...
There's more...
Creating a remote web development environment
See also
Downloading and configuring a local WordPress installation
Getting ready
Creating a local Subversion repository
Manual repository creation
Other version control systems
Importing initial files to a local Subversion repository
Checking out files from a Subversion repository
Subversion file statuses
Committing changes to a Subversion repository
Viewing the differences in modified files
Updating files to latest repository version
Reverting uncommitted file changes
Viewing file history
Installing a dedicated code editor/text editor
Chapter 2: Plugin Framework Basics
Creating a plugin file and header
Adding output content to page headers using plugin actions
Action hooks online listings
Searching for hooks in the WordPress source code
Using WordPress path utility functions to load external files and images
See also.
Modifying the site generator meta tag using plugin filters
preg_replace function
Filter hooks online listings and the apply_filters function
Adding text after each item's content using plugin filters
get_the_title and get_permalink functions
Inserting link statistics tracking code in page body using plugin filters
Troubleshooting coding errors and printing variable content
Built-in WordPress debugging features
Creating a new simple shortcode
Creating a new shortcode with parameters
Creating a new enclosing shortcode
Loading a style sheet to format plugin output
Writing plugins using object-oriented PHP
Chapter 3: User Settings and Administration Pages
Creating default user settings on plugin initialization
Deactivation function
Storing user settings using arrays
Removing plugin data on deletion
Creating an administration page menu item in the settings menu
Settings hook priority to determine menu order
Creating a multi-level administration menu.
How to do it...
Adding menu items leading to external pages
Hiding items which users should not access from the default menu
Rendering the admin page contents using HTML
wp_nonce_field
Processing and storing plugin configuration data
Displaying a confirmation message when options are saved
Adding custom help pages
Rendering the admin page contents using the Settings API
Rendering a drop-down list settings field
Rendering a text area settings field
Accessing user settings from action and filter hooks
Formatting admin pages using meta boxes
Splitting admin code from the main plugin file to optimize site performance
Storing style sheet data in user settings
Managing multiple sets of user settings from a single admin page
Creating network-level admin pages
Chapter 4: The Power of Custom Post Types
Creating a custom post type
There's more.
Changing the custom post type permalinks slug
Adding a new section to the custom post type editor
Displaying single custom post type items using a custom layout
Displaying custom post type data in shortcodes
do_shortcode function
Adding custom categories for custom post types
Adding custom fields to categories
Hiding the category editor from the custom post type editor
Displaying additional columns in the custom post list page
Adding filters for custom categories to the custom post list page
Adding Quick Edit fields for custom categories
Updating page title to include custom post data using plugin filters
Chapter 5: Customizing Post and Page Editors
Capturing and displaying information using custom meta boxes
Adding a new meta box to all post types (including custom ones)
Displaying custom post data using filter functions
Hiding the Custom Field section in the post editor
Extending the post editor to allow users to upload files directly.
Getting ready
Chapter 6: Accepting User Content Submissions
Creating a client-side content submission form
Saving user-submitted content in custom post types
Moderating user-submitted content
Sending email notifications upon new submissions
Implementing a CAPTCHA on user forms using an online service
Using a local library to implement a CAPTCHA on user forms
Chapter 7: Customizing User Data
Adding custom fields to the user editor
Processing and storing user custom data
Displaying new user data in user list page
Using custom user data in containing shortcode
Chapter 8: Creating Custom MySQL Database Tables
Creating new database tables
Using phpMyAdmin to simplify code creation
Create tables in network installation
Deleting custom tables on plugin removal
Updating custom table structure on plugin upgrade
Displaying custom table data on an admin page
How to do it.
How it works.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed August 21, 2017).
OCLC:
1001253552

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account