php
<?php
add_filter( "aioseo_get_post", "aioseo_filter_post_data" );
function aioseo_filter_post_data( $post ) {
	if ( 10 === (int) $post->post_id ) {
		$post->title = 'Some new title here';
	}
	return $post;
}