[WordPress] 外掛分享: Table Manager

首頁外掛目錄 › Table Manager
10+
安裝啟用
尚無評分
306 天前
最後更新
問題解決
PHP 7.4+ v1.0.0 上架:2025-04-23

內容簡介

總結:WordPress 的「表格管理者」外掛讓使用者可以利用簡碼輕鬆創建、管理和顯示表格。能夠建立表格、新增和更新欄位,以及管理資料(插入、更新、刪除)。每個表格都會生成獨特的簡碼,用於在文章或頁面上顯示內容。此外,外掛還提供安全的表單處理、易於使用的管理介面和用於前端顯示表格的自訂 CSS/JS。

問題與答案:
1. 「表格管理者」外掛提供哪些功能?
- 建立和管理自訂表格
- 動態新增、刪除和更新表格的欄位
- 透過易用的介面插入和更新表格資料
- 使用簡單簡碼來顯示表格
- 運用 WordPress 最佳實踐進行安全和優化的查詢

2. 如何透過「表格管理者」外掛在 WordPress 上安裝?
- 使用搜索功能:前往「新增外掛」畫面,搜尋「表格管理者」,點擊「立即安裝」,然後啟用外掛。
- 使用 ZIP 檔案:下載外掛、解壓縮 ZIP 檔案、上傳檔案後,透過 WordPress 的「外掛」選單啟用外掛。

3. 如何在 WordPress 上使用「表格管理者」來建立新的表格?
- 進入 WordPress 的管理面板中的「表格管理者」。
- 點擊「建立表格」,輸入表格名稱,新增需要的欄位並保存表格。

4. 請問如何在前台顯示表格?
- 在文章或頁面上使用以下簡碼來顯示表格:[display_table name="your_table_name"]

5. 「表格管理者」外掛提供哪些安全最佳實踐?
- 管理員能力檢查:限制存取到具有 manage_options 能力的管理員。
- 預防 SQL 注入:在適用的地方使用 WordPress 的 $wpdb->prepare() 進行保護查詢。
- 輸入消毒:所有使用者輸入數據在插入資料庫之前都會經過消毒處理。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Table Manager」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The “Table Manager” plugin for WordPress allows users to create, manage and display tables easily using a shortcode. It enables creating tables, adding and updating columns, and managing data (insert, update, delete). Each table generates a unique shortcode for displaying content on posts or pages. The plugin also provides secure form handling, an easy-to-use admin interface, and custom CSS/JS for table display on the front end.
Features
Create and manage custom tables from the WordPress admin panel.
Add, delete, and update table columns dynamically.
Insert and update table data through an easy-to-use interface.
The Display tables using a simple shortcode.
The Secure and optimized queries using WordPress best practices.
Admin Installer via search:
Visit the Add New plugin screen and search for “Table Manager”.
Click the “Install Now” button.
Activate the plugin.
Admin Installer via zip:
Download the Plugin.
Extract the ZIP file and upload.
Activate the plugin through the “Plugins” menu in WordPress.
Usage

Creating a New Table

Navigate to Table Manager in the WordPress admin panel.
Click on “Create Table” and enter the table name.
Add columns as needed and save the table.

Managing Table Data

Select a table from the dropdown menu.
Insert new records using the input form.
Delete or update records directly from the interface.

Displaying Tables on the Frontend

Use the following shortcode in posts or pages to display a table:
[display_table name=”your_table_name”]
Security Best Practices
Admin Capability Check: Access is restricted to administrators using manage_options capability.
SQL Injection Prevention: Queries are secured with WordPress $wpdb->prepare() where applicable.
Input Sanitization: All user inputs are sanitized before being inserted into the database.
Code Example
Registering Admin Menu:
function form_datamenu() {
add_menu_page(
‘Table Manager’, ‘Table Manager’, ‘manage_options’,
‘form_datamenu’, ‘form_data_adminpage’,
‘dashicons-database’, 20
);
}
add_action(‘admin_menu’, ‘form_datamenu’);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon