PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.8
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.8
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / deprecated / frontend / class-opengraph-oembed.php

class-opengraph-oembed.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.8, at src/deprecated/frontend/class-opengraph-oembed.php

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Frontend
6 */
7
8 /**
9 * Class WPSEO_OpenGraph_OEmbed.
10 *
11 * @deprecated 14.0
12 */
13 class WPSEO_OpenGraph_OEmbed implements WPSEO_WordPress_Integration {
14
15 /**
16 * {@inheritDoc}
17 *
18 * @codeCoverageIgnore
19 * @deprecated 14.0
20 */
21 public function register_hooks() {
22 _deprecated_function( __METHOD__, 'WPSEO 14.0' );
23 }
24
25 /**
26 * Callback function to pass to the oEmbed's response data that will enable
27 * support for using the image and title set by the WordPress SEO plugin's fields. This
28 * address the concern where some social channels/subscribed use oEmebed data over OpenGraph data
29 * if both are present.
30 *
31 * @link https://developer.wordpress.org/reference/hooks/oembed_response_data/ for hook info.
32 *
33 * @deprecated 14.0
34 * @codeCoverageIgnore
35 *
36 * @param array $data The oEmbed data.
37 * @param WP_Post $post The current Post object.
38 *
39 * @return array An array of oEmbed data with modified values where appropriate.
40 */
41 public function set_oembed_data( $data, $post ) {
42 _deprecated_function( __METHOD__, 'WPSEO 14.0' );
43
44 return $data;
45 }
46 }
47