php
<?php
add_filter( 'aioseo_public_post_types', 'aioseo_filter_public_post_types' );
function aioseo_filter_public_post_types( $postTypes ) {
  $filteredPostTypes = [];
  foreach ( $postTypes as $postTypeObject ) {
    if ( is_array( $postTypeObject ) && 'movie' === $postTypeObject['name'] ) {
      continue;
    }
    $filteredPostTypes[] = $postTypeObject;
  }
  return $filteredPostTypes;
}