本文整理汇总了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();
}
}
示例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() {
}
*/