helpers->schema->image->generate_from_attachment_id' ); return $this->helpers->schema->image->generate_from_attachment_id( $image_id, get_post_thumbnail_id() ); } /** * Generates image schema from the url. * * @deprecated 14.0 * @codeCoverageIgnore * * @param string $image_id The image schema id. * @param string $image_url The image URL. * * @return array Schema ImageObject array. */ protected function generate_image_schema_from_url( $image_id, $image_url ) { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'YoastSEO()->helpers->schema->image->generate_from_url' ); return $this->helpers->schema->image->generate_from_url( $image_id, $image_url ); } }