| 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 |
|