Home / Admin / Remove Address Line 2 from the Local SEO address output on the front end
Duplicate Snippet

Embed Snippet on Your Site

Remove Address Line 2 from the Local SEO address output on the front end

This filter can be used to remove Address Line 2 from the Local SEO address output on the front end

<10
Code Preview
php
<?php
function aioseo_change_local_business_address_tags( $tags ) {		
	foreach ( $tags as $key => $tag ) {
		if ( 'streetLineTwo' === $tag['id'] ) {
			unset( $tags[ $key ] );
		}
	}
	return $tags;
}
add_filter( 'aioseo_local_business_address_tags', 'aioseo_change_local_business_address_tags' );

Comments

Add a Comment