Remove Specific Post Type From Public Post Type List

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

Hide Specific Day From Opening Hours Output

add_filter( ‘aioseo_local_business_output_opening_hours_instance’, ‘aioseo_change_local_business_output_opening_hours_instance’, 10, 3 ); function aioseo_change_local_business_output_opening_hours_instance( $instance, $postId, $openingHoursData ) { $instance[‘showSunday’] = false; return $instance; }Continue reading