本文整理匯總了PHP中wpl_global::do_shortcode方法的典型用法代碼示例。如果您正苦於以下問題:PHP wpl_global::do_shortcode方法的具體用法?PHP wpl_global::do_shortcode怎麽用?PHP wpl_global::do_shortcode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類wpl_global
的用法示例。
在下文中一共展示了wpl_global::do_shortcode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __
if (trim($value) != '') {
$return['field_id'] = $field->id;
$return['type'] = $field->type;
$return['name'] = __($field->name, WPL_TEXTDOMAIN);
if (isset($field->multilingual) and $field->multilingual and wpl_global::check_multilingual_status()) {
$current_language = wpl_global::get_current_language();
$lang_column = wpl_addon_pro::get_column_lang_name($field->table_column, $current_language, false);
if (isset($values[$lang_column])) {
$value = $values[$lang_column];
}
}
$value = stripslashes($value);
if (in_array($field->id, array(308, 1160))) {
$value = apply_filters('the_content', $value);
}
$value = wpl_global::do_shortcode($value);
$return['value'] = $value;
}
$done_this = true;
} elseif ($type == 'select' and !$done_this) {
if (trim($value) and trim($value) != '-1') {
$return['field_id'] = $field->id;
$return['type'] = $field->type;
$return['name'] = __($field->name, WPL_TEXTDOMAIN);
foreach ($options['params'] as $field_option) {
if ($value == $field_option['key']) {
$return['value'] = __($field_option['value'], WPL_TEXTDOMAIN);
}
}
}
$done_this = true;