PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.1
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.1
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 / admin / class-social-admin.php

class-social-admin.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.1, at src/deprecated/admin/class-social-admin.php

106 lines 2.2 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\Admin
6 */
7
8 /**
9 * This class adds the Social tab to the Yoast SEO metabox and makes sure the settings are saved.
10 *
11 * @deprecated 14.6
12 *
13 * @codeCoverageIgnore
14 */
15 class WPSEO_Social_Admin extends WPSEO_Metabox {
16
17 /**
18 * Class constructor.
19 *
20 * @deprecated 14.6
21 *
22 * @codeCoverageIgnore
23 */
24 public function __construct() {
25 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
26 }
27
28 /**
29 * Translate text strings for use in the meta box.
30 *
31 * IMPORTANT: if you want to add a new string (option) somewhere, make sure you add that array key to
32 * the main meta box definition array in the class WPSEO_Meta() as well!!!!
33 *
34 * @deprecated 14.6
35 *
36 * @codeCoverageIgnore
37 */
38 public static function translate_meta_boxes() {
39 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
40 }
41
42 /**
43 * Returns the metabox section for the social settings.
44 *
45 * @deprecated 14.6
46 *
47 * @codeCoverageIgnore
48 *
49 * @return WPSEO_Metabox_Collapsibles_Sections|null
50 */
51 public function get_meta_section() {
52 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
53
54 return null;
55 }
56
57 /**
58 * Returns the Upgrade to Premium notice.
59 *
60 * @deprecated 14.6
61 *
62 * @codeCoverageIgnore
63 *
64 * @param string $network The social network.
65 *
66 * @return string The notice HTML on the free version, empty string on premium.
67 */
68 public function get_premium_notice( $network ) {
69 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
70
71 return 'class_social_admin';
72 }
73
74 /**
75 * Filter over the meta boxes to save, this function adds the Social meta boxes.
76 *
77 * @deprecated 14.6
78 *
79 * @codeCoverageIgnore
80 *
81 * @param array $field_defs Array of metaboxes to save.
82 *
83 * @return array
84 */
85 public function save_meta_boxes( $field_defs ) {
86 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
87
88 return [];
89 }
90
91 /**
92 * This method will compare opengraph fields with the posted values.
93 *
94 * When fields are changed, the facebook cache will be purged.
95 *
96 * @deprecated 14.6
97 *
98 * @codeCoverageIgnore
99 *
100 * @param WP_Post $post Post instance.
101 */
102 public function og_data_compare( $post ) {
103 _deprecated_function( __METHOD__, 'WPSEO 14.6' );
104 }
105 }
106