WordPress Plugin Development Cookbook - Second Edition

Yannick Lefebvre

買這商品的人也買了...

商品描述

Key Features

  • 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

Book Description

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 book, you will be able to create WordPress plugins to perform any task you can imagine.

What you will learn

  • Discover how to register user callbacks with WordPress, forming the basis of plugin

商品描述(中文翻譯)

主要特點



  • 學習如何改變和擴展WordPress,以執行幾乎任何任務

  • 通過易於理解的示例和詳細解釋,探索插件API

  • 根據項目需求塑造WordPress,或將其轉變為整個社區的利益

書籍描述


WordPress是一個受歡迎、強大且開放的內容管理系統。學習如何擴展其功能,可以發揮其全部潛力,無論您是一個正在尋找合適擴展的管理員,一個有著改進平台想法的開發人員,還是一個致力於滿足客戶需求的網站開發人員。本書向讀者展示如何使用WordPress的廣泛API功能集,創建具有易於配置的管理界面的高質量插件。


通過針對最新版本WordPress 4.x 更新的新食譜和材料,本書教您如何創建從幾行代碼到提供複雜新功能的複雜擴展的插件。


您將首先使用WordPress提供的基本機制來創建插件並執行自定義用戶代碼。然後,您將了解如何設計管理面板,通過自定義字段增強文章編輯器,存儲自定義數據,並根據自定義字段的值修改站點行為。您將安全地使用腳本語言在網頁上添加動態元素,並構建新的小工具,用戶將能夠將其添加到WordPress的側邊欄和小工具區域。


通過閱讀本書,您將能夠創建能夠執行您能想像到的任何任務的WordPress插件。

您將學到什麼



  • 發現如何在WordPress中註冊用戶回調,形成插件的基礎