內容簡介
此外掛是使用 WordPress 內建的 WP_List_Table 類別建立外掛程式的一個高度記載範例。之前,WordPress 外掛必須從頭開始建立,並且常常與 WordPress 後臺不一致。本範例可以幫助開發者理解 WP_List_Table 類別的使用,以便快速且輕易地建立一致、標準化、功能豐富的列表,供 WordPress 後臺使用。
此外掛會新增一個「List Table Example」的後臺選單。此頁面包含一個範例列表,以及產生此列表所需的文件。開發者可以打開此 PHP 檔案,可以看到詳細的文件以及程式碼,以便複製此功能。
如需更多資訊,請參閱 WordPress Codex 中的 WP_List_Tables 頁面。
外掛標籤
開發者團隊
原文外掛簡介
This plugin serves as a highly documented example of using WordPress’s built-in WP_List_Table class for plugin development. Previously, WordPress plugins
had to be created from scratch and were often wildly inconsistent with the rest of the WordPress admin. This example serves to help clarify use of the
WP_List_Table class for quickly and easily generating consistent, standardized, feature-rich list-tables for WordPress admin screens.
One new admin menu is created: “List Table Example”. This page includes an example table and all the documentation needed to reproduce it. Developers who
open the PHP file itself will find exceptionally well documented code outlining all the information needed to duplicate this feature.
For more information, please visit the WP_List_Tables page in the WordPress Codex.
