gform_addon_navigation

gform_addon_navigation

DescriptionUsageParametersExamplesSource Code

Description
Use this filter to add a sub-menu item under the 「Forms」 menu.
Usage
1add_filter( 'gform_addon_navigation', 'add_menu_item' );
Parameters

$menu_items array
Current list of menu items to be filtered, in the following format:
123456array(    array(  "name" => "gf_campaignmonitor",        "label" => "Campaign Monitor",        "callback" => "campaignmonitor_page",        "permission" => "gravityforms_campaignmonitor"););

Examples
This example adds a new sub-menu item under 「Forms」.
12345add_filter( 'gform_addon_navigation', 'add_menu_item' );function add_menu_item( $menu_items ) {    $menu_items[] = array( "name" => "new_submenu_name", "label" => "New Submenu", "callback" => "submenu_handler", "permission" => "edit_posts" );    return $menu_items;}
Source Code
This filter is located in GFForms::create_menu() in gravityforms.php

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注