本文整理匯總了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() {
}
*/