[WordPress] 外掛分享: Menu Item Types — Action

首頁外掛目錄 › Menu Item Types — Action
WordPress 外掛 Menu Item Types — Action 的封面圖片
全新外掛
安裝啟用
尚無評分
1193 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.0+ v1.2 上架:2021-12-19

內容簡介

這個「Menu Item Types」外掛程式的新增功能模組可以讓您在導覽選單中加入操作項目。
這個外掛程式是搭配 Menu Item Types 外掛程式使用的。

使用自訂操作項目
/**
* 所執行的勾子將會加上前綴: mitypes_action_ 。
* 為了執行 my_custom_action_name,您需要寫成:
*/

add_action( 'mitypes_action_my_custom_action_name', 'my_callable_function', 10, 2 );

function my_callable_function( $args, $item ){
echo 'hello world' ;
}

外掛標籤

開發者團隊

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

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

原文外掛簡介

This Menu Item Types Add-on adds the possibility of adding action in your navigation menus.
This plugin extend Menu Item Types.
Use your custom action
/**
* The executed hook will be prefixed with : mitypes_action_ .
* To run my_custom_action_name, you need write :
*/

add_action( 'mitypes_action_my_custom_action_name', 'my_callable_function', 10, 2 );

function my_callable_function( $args, $item ){
echo 'hello world' ;
}

延伸相關外掛

文章
Filter
Apply Filters
Mastodon