当前位置: 首页>>代码示例>>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;未经允许,请勿转载。