Last active
June 30, 2020 22:47
-
-
Save nathaningram/e8adfae9501ad6e74797 to your computer and use it in GitHub Desktop.
Pods - Change Default Metabox Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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