Пример #1
0
/**
 * Highlight Vc submenu
 *
 * @since 1.2
 */
function wpb_templatera_menu_highlight()
{
    global $parent_file, $submenu_file, $post_type;
    if ($post_type === VcTemplateManager::postType() && (!defined('VC_IS_TEMPLATE_PREVIEW') || !VC_IS_TEMPLATE_PREVIEW)) {
        $parent_file = VC_PAGE_MAIN_SLUG;
        $submenu_file = 'edit.php?post_type=' . rawurlencode(VcTemplateManager::postType());
    }
}
Пример #2
0
/**
 * Highlight Vc submenu
 *
 * @since 1.2
 */
function wpb_templatera_menu_highlight()
{
    global $parent_file, $submenu_file, $post_type;
    if ($post_type === VcTemplateManager::postType()) {
        $parent_file = VC_PAGE_MAIN_SLUG;
        $submenu_file = 'edit.php?post_type=' . rawurlencode(VcTemplateManager::postType());
    }
}