( ! empty( $field_def['show_in_rest'] ) ) { unset( $data['meta'][ self::$meta_prefix . $key ] ); } } } $response->set_data( $data ); return $response; } /** * Filter the schema article types. * * @return void */ public static function filter_schema_article_types() { /** This filter is documented in inc/options/class-wpseo-option-titles.php */ self::$meta_fields['schema']['schema_article_type']['options'] = apply_filters( 'wpseo_schema_article_types', self::$meta_fields['schema']['schema_article_type']['options'] ); } }