Home / Admin / Add String to the Local SEO Business Name
Duplicate Snippet

Embed Snippet on Your Site

Add String to the Local SEO Business Name

This filter can be used to add a string to the Local SEO Business Name.

Replace "19" with the Location ID.

80+
Code Preview
php
<?php
add_filter( 'aioseo_local_business_get_location', 'aioseo_change_local_business_get_location', 10, 2 );
function aioseo_change_local_business_get_location( $information, $postId ) {
	if ( 19 === $postId ) {
		$information->locations->business->name .= ' LLC';
	}
	return $information;
}

Comments

Add a Comment