Skip to content

Change the title of the subtitle meta box

Ben Huson edited this page Jul 29, 2013 · 2 revisions

With the wps_meta_box_title filter you can change the title of the subtitle meta box that is displayed in the admin.

Examples

Simple filter usage:

<?php
function my_wps_meta_box_title( $title ) {
	return __( 'My Subtitle Box Heading' );
}
add_filter( 'wps_meta_box_title', 'my_wps_meta_box_title' );
?>

Advanced filter usage to show a different title for a post type called 'property':

<?php
function my_wps_meta_box_title( $title, $post_type ) {
	if ( 'property' == $post_type ) {
		$title = __( 'Property Location' );
	}
	return $title;
}
add_filter( 'wps_meta_box_title', 'my_wps_meta_box_title', 10, 2 );
?>