Add String to the Local SEO Business Name

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; }Continue reading

Add Another Meta Keyword to Each Post

add_filter( ‘aioseo_keywords’, ‘aioseo_filter_keywords’ ); function aioseo_filter_keywords( $keywords ) { if ( is_singular() ) { $keywords = explode( ‘,’, $keywords ); array_push( $keywords, ‘anotherkeyword’ ); $keywords = implode( ‘,’, $keywords ); } return $keywords ; }Continue reading

Change OG Title of a Specific Post

add_filter( ‘aioseo_facebook_tags’, ‘aioseo_filter_facebook_title’ ); function aioseo_filter_facebook_title( $facebookMeta ) { if ( is_singular() && 14 === get_the_ID() ) { $facebookMeta[‘og:title’] = “A different title”; } return $facebookMeta; }Continue reading