autoship_admin_settings_submenu_pages

(src > admin.php) Can be used to add additional submenu pages to the Autoship Cloud menu. Takes the $submenus array as a parameter. 

Example

// add submenu to autoship admin tab
function add_submenu($submenus){
    $my_submenu =
        array(
            'parent_slug' => 'autoship',
            'page_title'  => __( 'My Submenu', 'autoship' ),
            'menu_title'  => __( 'My Submenu', 'autoship' ),
            'capability'  => 'administrator',
            'menu_slug'   => 'my-submenu',
            'function'    => 'my_menu_page'
        );
    return $submenus[] = $my_submenu;
}
add_filter('autoship_admin_settings_submenu_pages', 'add_submenu', 10, 1);

Still need help? Contact Us Contact Us