✏️ 编辑:filters.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/js_composer/include/helpers/filters.php
大小:1.43 KB · 修改:2020-09-11 15:43:36 · 权限:0664 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * WPBakery Visual Composer filter functions * * @package WPBakeryVisualComposer * * http://kb.wpbakery.com/index.php?title=Visual_Composer_Filters */ /** * This filter should be applied to all content elements titles * * $params['extraclass'] Extra class name will be added * * * To override content element title default html markup, paste this code in your theme's functions.php file * vc_filter: wpb_widget_title * add_filter('wpb_widget_title', 'override_widget_title', 10, 2); * function override_widget_title($output = '', $params = array('')) { * $extraclass = (isset($params['extraclass'])) ? " ".$params['extraclass'] : ""; * return '<h1 class="entry-title'.$extraclass.'">'.$params['title'].'</h1>'; * } * * @param array $params * * @return mixed|string|void */ function wpb_widget_title( $params = array( 'title' => '' ) ) { if ( '' === $params['title'] ) { return ''; } $extraclass = ( isset( $params['extraclass'] ) ) ? ' ' . $params['extraclass'] : ''; $output = '<h2 class="wpb_heading' . $extraclass . '">' . $params['title'] . '</h2>'; return apply_filters( 'wpb_widget_title', $output, $params ); } /* Available filters in default.php wpb_toggle_heading Available filters in buttons.php wpb_cta_text Available filters in teaser_grid.php vc_teaser_grid_title vc_teaser_grid_thumbnail vc_teaser_grid_content vc_teaser_grid_carousel_arrows */
💾 保存
取消
保存为 UTF-8,换行统一为 LF