php
<?php
add_filter( 'aioseo_local_business_post_type_slug', 'aioseo_change_local_business_post_type_slug' );
function aioseo_change_local_business_post_type_slug( $slug ) {
	$slug = 'franchise';
	return $slug;
}