當前位置: 首頁>>代碼示例>>PHP>>正文


PHP td_global_blocks::wpb_map_all方法代碼示例

本文整理匯總了PHP中td_global_blocks::wpb_map_all方法的典型用法代碼示例。如果您正苦於以下問題:PHP td_global_blocks::wpb_map_all方法的具體用法?PHP td_global_blocks::wpb_map_all怎麽用?PHP td_global_blocks::wpb_map_all使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在td_global_blocks的用法示例。


在下文中一共展示了td_global_blocks::wpb_map_all方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: td_vc_init

function td_vc_init()
{
    // Force Visual Composer to initialize as "built into the theme". This will hide certain tabs under the Settings->Visual Composer page
    if (function_exists('vc_set_as_theme')) {
        vc_set_as_theme(true);
    }
    if (function_exists('wpb_map')) {
        //map all of our blocks in page builder
        td_global_blocks::wpb_map_all();
    }
    if (function_exists('vc_disable_frontend')) {
        vc_disable_frontend();
    }
    // @todo - this may not be requiered anynmore
    if (class_exists('WPBakeryVisualComposer')) {
        //disable visual composer updater
        $td_composer = WPBakeryVisualComposer::getInstance();
        $td_composer->disableUpdater();
    }
}
開發者ID:weerapat,項目名稱:wp-daily,代碼行數:20,代碼來源:td_wp_booster_functions.php

示例2: preg_replace

        // @todo remove this - it keeps compatibility with older visual composer versions
        $class_string = preg_replace('/vc_span(\\d{1,2})/', 'span$1', $class_string);
    }
    return $class_string;
}
// Filter to Replace default css class for vc_row shortcode and vc_column
add_filter('vc_shortcodes_css_class', 'custom_css_classes_for_vc_row_and_vc_column', 10, 2);
/**
 * Force Visual Composer to initialize as "built into the theme". This will hide certain tabs under the Settings->Visual Composer page
 */
if (function_exists('vc_set_as_theme')) {
    vc_set_as_theme();
}
if (function_exists('wpb_map')) {
    //map all of our blocks in page builder
    td_global_blocks::wpb_map_all();
}
if (function_exists('vc_disable_frontend')) {
    vc_disable_frontend();
}
if (class_exists('WPBakeryVisualComposer')) {
    //disable visual composer updater
    $td_composer = WPBakeryVisualComposer::getInstance();
    $td_composer->disableUpdater();
}
/*
to enable all the visual composer features from a child theme, declare an empty td_disable_visual_composer_features function like so in the child's functions.php:

function td_disable_visual_composer_features() {
}
*/
開發者ID:vikasjain1595,項目名稱:wordpresstheme,代碼行數:31,代碼來源:functions.php


注:本文中的td_global_blocks::wpb_map_all方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。