Skip to content

Instantly share code, notes, and snippets.

@nathaningram
Last active June 30, 2020 22:47
Show Gist options
  • Save nathaningram/e8adfae9501ad6e74797 to your computer and use it in GitHub Desktop.
Save nathaningram/e8adfae9501ad6e74797 to your computer and use it in GitHub Desktop.
Pods - Change Default Metabox Title
// Change Pods MORE FIELDS Metabox Title to Custom
add_filter('pods_meta_default_box_title','ni_changethatname',10,5);
function ni_changethatname($title, $pod, $fields, $type, $name ) {
// assuming we are changing the meta box title on a pod named 'business'
$title = ($name=='POD-SLUG-HERE') ? __('WHAT YOU WANT TO CALL IT HERE', 'plugin_lang') : $title ;
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment