WordPress Plugin Development Cookbook

Yannick Lefebvre

  • 出版商: Packt Publishing
  • 出版日期: 2012-07-16
  • 售價: $1,840
  • 貴賓價: 9.5$1,748
  • 語言: 英文
  • 頁數: 318
  • 裝訂: Paperback
  • ISBN: 1849517681
  • ISBN-13: 9781849517683
  • 相關分類: WordPress
  • 已絕版

相關主題

商品描述

Over 80 step-by-step recipes to extend the most popular CMS and share your creations with its community

Overview

  • Learn to create plugins and configuration panels in order to bring new capabilities to WordPress
  • Tailor WordPress to your needs with new content types, custom widgets, and fancy jQuery elements, without breaching security needs
  • Detailed instructions on how to achieve each task, followed by clear explanations of concepts featured in each recipe

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 the community, or a website designer/developer working to fulfill a client's needs.

"WordPress Plugin Development Cookbook" is the perfect companion for plugin developers, offering easy-to-follow instructions to accomplish tasks that range from basic plugin creation and configuration to advanced customization techniques. Each topic is illustrated through realistic examples showing how it can be applied to solve common problems, followed by explanations of all concepts used.

Create WordPress plugins of varying complexity, from a few lines that change a specific function to complex extensions that provide intricate new capabilities.

From the creation of your first simple plugin to adding entire new sections and widgets in the administration interface, learn how to change and extend WordPress to perform virtually any task. After installing and configuring an efficient plugin development environment, you will discover how to register your own callbacks that WordPress will execute at key points, forming the basis of plugin creation. Armed with this essential knowledge, you'll explore how to create administration pages to allow users to configure your new creations and to add new content management sections to WordPress through custom post types and custom database tables. Once you have all these elements in place, improve your plugins by customizing the post and page editors, creating user-facing forms to populate new content sections, making your plugin output dynamic using Javascript and AJAX as well as adding new widgets to the platform. Finally, see how to add support for multiple languages and distribute your work to the global WordPress community.

"WordPress Plugin Development Cookbook" provides you with tools to create any plugin you can imagine.

What you will learn from this book

  • Prepare an efficient development environment
  • Create your first plugins using WordPress action and filter hooks
  • Add new sections to the administration interface for plugin configuration
  • Create new content types using Custom Post Types or Custom Database Tables
  • Make your content dynamic with JavaScript, jQuery, and AJAX
  • Add new widgets to the WordPress library
  • Prepare your plugin to be translated for broad international use
  • Get your new creations ready to be shared on the official WordPress site

Approach

This is a cookbook with step-by-step instructions and code examples required to learn WordPress plugin development easily.

Who this book is written 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.

商品描述(中文翻譯)

超過80個逐步指南,以擴展最受歡迎的CMS並與其社群分享您的創作。

概述

- 學習創建插件和配置面板,以為WordPress帶來新的功能
- 根據您的需求定制WordPress,添加新的內容類型、自定義小工具和時髦的jQuery元素,而不會違反安全需求
- 詳細的指導如何完成每個任務,並提供每個示例中所使用概念的清晰解釋

詳細內容

WordPress是一個受歡迎、強大且開放的內容管理系統。學習擴展其核心功能可以發揮其全部潛力,無論您是一個找不到合適擴展的管理員,還是一個有一個改進平台的好點子的開發人員,或者是一個網站設計師/開發人員為客戶需求而工作。

《WordPress插件開發食譜》是插件開發人員的完美伴侶,提供易於遵循的指導,以完成從基本插件創建和配置到高級自定義技術的任務。每個主題都通過實際示例進行說明,展示如何應用於解決常見問題,並解釋所使用的所有概念。

從創建第一個簡單插件到在管理界面中添加整個新部分和小工具,學習如何更改和擴展WordPress以執行幾乎任何任務。在安裝和配置高效的插件開發環境之後,您將發現如何註冊自己的回調函數,這些函數將在關鍵點執行,形成插件創建的基礎。掌握這些基本知識後,您將探索如何創建管理頁面,以允許用戶配置您的新創作,並通過自定義文章類型和自定義數據庫表向WordPress添加新的內容管理部分。一旦您擁有了所有這些元素,通過自定義文章和頁面編輯器、創建用戶界面表單以填充新的內容部分、使用JavaScript和AJAX使插件輸出動態以及向平台添加新的小工具來改進您的插件。最後,了解如何添加對多種語言的支持並將您的作品分發給全球WordPress社群。

《WordPress插件開發食譜》為您提供創建任何您可以想像的插件的工具。

從本書中您將學到什麼

- 準備高效的開發環境
- 使用WordPress動作和過濾器鉤子創建您的第一個插件
- 為插件配置界面添加新的部分
- 使用自定義文章類型或自定義數據庫表創建新的內容類型
- 使用JavaScript、jQuery和AJAX使您的內容動態
- 向WordPress庫添加新的小工具
- 為廣泛的國際使用準備您的插件進行翻譯
- 將您的新創作準備好在官方WordPress網站上分享

方法

這是一本提供逐步指導和代碼示例的食譜,以便輕鬆學習WordPress插件開發。

本書適合對PHP有基本知識並有興趣創建新插件以滿足個人需求、客戶需求或與社群分享的WordPress用戶、開發人員或網站集成者。