
Menu Item Types — Action
v1.2Maxime Pertici · 2021年12月20日 上架
This Menu Item Types Add-on adds the possibility of adding action in your navigation menus.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,600
- 最近更新
- 2022年12月4日
需要 WordPress 5.8+已测试到 6.1.17PHP 7.0+
贡献者
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' ;
}