Exemplo n.º 1
0
/**
 * Add sub page to Visual Composer pages
 *
 * @since 1.2
 */
function wpb_templatera_add_submenu_page()
{
    if (!WPB_VC_NEW_USER_ACCESS_VERSION || WPB_VC_NEW_USER_ACCESS_VERSION && vc_user_access()->part('templates')->checkStateAny(true, null)->get()) {
        $labels = VcTemplateManager::getPostTypesLabels();
        add_submenu_page(VC_PAGE_MAIN_SLUG, $labels['name'], $labels['name'], 'manage_options', 'edit.php?post_type=' . rawurlencode(VcTemplateManager::postType()), '');
    }
}
Exemplo n.º 2
0
/**
 * Add sub page to Visual Composer pages
 *
 * @since 1.2
 */
function wpb_templatera_add_submenu_page()
{
    $labels = VcTemplateManager::getPostTypesLabels();
    add_submenu_page(VC_PAGE_MAIN_SLUG, $labels['name'], $labels['name'], 'manage_options', 'edit.php?post_type=' . rawurlencode(VcTemplateManager::postType()), '');
}