WordPress Plugin development cookbook create powerful plugins to extend the world's most popular CMS

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 det...

Descripción completa

Detalles Bibliográficos
Otros Autores: Lefebvre, Yannick , author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, [England] ; Mumbai, [India] : Packt 2017.
Edición:Second edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630685306719
Tabla de Contenidos:
  • 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
  • How to do it...
  • How it works...
  • Creating a local Subversion repository
  • How to do it...
  • How it works...
  • There's more...
  • Manual repository creation
  • Other version control systems
  • See also
  • Importing initial files to a local Subversion repository
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Checking out files from a Subversion repository
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Subversion file statuses
  • See also
  • Committing changes to a Subversion repository
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • 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
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 2: Plugin Framework Basics
  • Introduction
  • Creating a plugin file and header
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Adding output content to page headers using plugin actions
  • How to do it...
  • How it works...
  • There's more...
  • Action hooks online listings
  • Searching for hooks in the WordPress source code
  • See also
  • Using WordPress path utility functions to load external files and images
  • How to do it...
  • How it works...
  • There's more...
  • See also.
  • Modifying the site generator meta tag using plugin filters
  • How to do it...
  • How it works...
  • There's more...
  • preg_replace function
  • Filter hooks online listings and the apply_filters function
  • See also
  • Adding text after each item's content using plugin filters
  • How to do it...
  • How it works...
  • There's more...
  • get_the_title and get_permalink functions
  • See also
  • Inserting link statistics tracking code in page body using plugin filters
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Troubleshooting coding errors and printing variable content
  • How to do it...
  • How it works...
  • There's more...
  • Built-in WordPress debugging features
  • See also
  • Creating a new simple shortcode
  • How to do it...
  • How it works...
  • See also
  • Creating a new shortcode with parameters
  • How to do it...
  • How it works...
  • See also
  • Creating a new enclosing shortcode
  • How to do it...
  • How it works...
  • See also
  • Loading a style sheet to format plugin output
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Writing plugins using object-oriented PHP
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 3: User Settings and Administration Pages
  • Introduction
  • Creating default user settings on plugin initialization
  • How to do it...
  • How it works...
  • There's more...
  • Deactivation function
  • See also
  • Storing user settings using arrays
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Removing plugin data on deletion
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Creating an administration page menu item in the settings menu
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Settings hook priority to determine menu order
  • See also
  • Creating a multi-level administration menu.
  • How to do it...
  • How it works...
  • See also
  • Adding menu items leading to external pages
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Hiding items which users should not access from the default menu
  • How to do it...
  • How it works...
  • Rendering the admin page contents using HTML
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • wp_nonce_field
  • See also
  • Processing and storing plugin configuration data
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying a confirmation message when options are saved
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Adding custom help pages
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Rendering the admin page contents using the Settings API
  • How to do it...
  • How it works...
  • There's more...
  • Rendering a drop-down list settings field
  • Rendering a text area settings field
  • See also
  • Accessing user settings from action and filter hooks
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Formatting admin pages using meta boxes
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Splitting admin code from the main plugin file to optimize site performance
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Storing style sheet data in user settings
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Managing multiple sets of user settings from a single admin page
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Creating network-level admin pages
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 4: The Power of Custom Post Types
  • Introduction
  • Creating a custom post type
  • Getting ready
  • How to do it...
  • How it works...
  • There's more.
  • Changing the custom post type permalinks slug
  • Adding a new section to the custom post type editor
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying single custom post type items using a custom layout
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying custom post type data in shortcodes
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • do_shortcode function
  • Adding custom categories for custom post types
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Adding custom fields to categories
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Hiding the category editor from the custom post type editor
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying additional columns in the custom post list page
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Adding filters for custom categories to the custom post list page
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Adding Quick Edit fields for custom categories
  • Getting ready
  • How to do it...
  • How it works...
  • Updating page title to include custom post data using plugin filters
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 5: Customizing Post and Page Editors
  • Introduction
  • Capturing and displaying information using custom meta boxes
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Adding a new meta box to all post types (including custom ones)
  • Displaying custom post data using filter functions
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Hiding the Custom Field section in the post editor
  • Getting ready
  • How to do it...
  • How it works...
  • Extending the post editor to allow users to upload files directly.
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 6: Accepting User Content Submissions
  • Introduction
  • Creating a client-side content submission form
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Saving user-submitted content in custom post types
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Moderating user-submitted content
  • See also
  • Sending email notifications upon new submissions
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Implementing a CAPTCHA on user forms using an online service
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Using a local library to implement a CAPTCHA on user forms
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 7: Customizing User Data
  • Introduction
  • Adding custom fields to the user editor
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Processing and storing user custom data
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying new user data in user list page
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Using custom user data in containing shortcode
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Chapter 8: Creating Custom MySQL Database Tables
  • Introduction
  • Creating new database tables
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Using phpMyAdmin to simplify code creation
  • Create tables in network installation
  • Deleting custom tables on plugin removal
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Updating custom table structure on plugin upgrade
  • Getting ready
  • How to do it...
  • How it works...
  • See also
  • Displaying custom table data on an admin page
  • Getting ready
  • How to do it.
  • How it works.