Cyber Monday Sale Ends in

0Days

0Hours

0Minutes

0Seconds

Buy Lifetime Membership
×

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);
Table of Contents
Cyber Monday Popup