How Can We Help?

Search for answers or browse our knowledge base.

< All Topics
Print

Change label of Rental

Add the following code snippet to the functions.php file of the child theme at the end.

function dr_epl_change_rental_label() { 

	global $wp_post_types;
	$v = 'rental';
	if ( ! isset( $wp_post_types[$v] ) && empty( $wp_post_types[$v]->labels ) ) {
		return;
	}
	$wp_post_types[$v]->labels->name               = 'Affitti';
    $wp_post_types[$v]->labels->singular_name      = 'Affitto';
}
add_action( 'wp_loaded', 'dr_epl_change_rental_label', 20);
Previous Enable lightbox for property images created using native WordPress editor
Next Move property features above property description
Table of Contents