篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Pods Meta Box标题相关的知识,希望对你有一定的参考价值。
//Change the meta box title for custom fields
add_filter('pods_meta_default_box_title','changethatname',10,5);
function changethatname($title, $pod, $fields, $type, $name ) {
// assuming we are changing the meta box title on a pod named 'page'
\!h $title = ($name=='__Post type slug__') ? __('__Enter New Meta box title__', 'plugin_lang') : $title ;
return $title;
}