php
<?php
add_filter( "aioseo_save_term", "aioseo_filter_term_data" );
function aioseo_filter_term_data( $term ) {
	if ( 12 === (int) $term->term_id ) {
		$term->title = 'Some new title here';
	}
	return $term;
}