Cargando…

WordPress plugin development cookbook /

In Detail WordPress is a popular, powerful, and open Content Management System. Learning to extend its core capabilities allows you to unleash its full potential, whether you're an administrator who cannot find the right extension, or a developer with a great idea to enhance the platform for th...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Lefebvre, Yannick
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2012.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Preparing a Local Development Environment; Introduction; Installing a web server on your computer; Downloading and configuring a local WordPress installation; Creating a local Subversion repository; Importing initial files to a local Subversion repository; Checking out files from a Subversion repository; Committing changes to a Subversion repository; Reverting uncommitted file changes; Viewing file history and reverting content changes to older revisions
  • Installing a dedicated code/text editorInstalling and configuring the NetBeans Integrated Development Environment; Interacting with a Subversion repository from the NetBeans interface; Managing a MySQL database server from the NetBeans interface; Chapter 2: Plugin Framework Basics; Introduction; Creating a plugin file and header; Adding output content to page headers using plugin actions; Using WordPress path utility functions to load external files and images; Modifying the page title using plugin filters; Adding text after each item's content using plugin filters
  • Inserting link statistics tracking code in page body using plugin filtersTroubleshooting coding errors and printing variable content; Creating a new simple shortcode; Creating a new shortcode with parameters; Creating a new enclosing shortcode; Loading a stylesheet to format plugin output; Writing plugins using object-oriented PHP; Chapter 3: User Settings and Administration Pages; Introduction; Creating default user settings on plugin initialization; Storing user settings using arrays; Removing plugin data on deletion; Creating an administration page menu item in the Settings menu
  • Creating a multi-level administration menuHiding items which users should not access from the default menu; Rendering the admin page contents using HTML; 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; 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 stylesheet data in user settings
  • Managing multiple sets of user settings from a single admin pageChapter 4: The Power of Custom Post Types; Introduction; Creating a custom post type; Adding a new section to the custom post type editor; Displaying single custom post type items using custom templates; Creating an archive page for custom post types; Displaying custom post type data in shortcodes; Adding custom categories for custom post types; 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