PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 19.0
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v19.0
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 / extension-manager.php

extension-manager.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 19.0, at src/deprecated/admin/extension-manager.php

94 lines 2.0 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 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
9
10 /**
11 * Represents the class that contains the available extensions for Yoast SEO.
12 *
13 * @deprecated 15.4
14 * @codeCoverageIgnore
15 */
16 class WPSEO_Extension_Manager {
17
18 /**
19 * Adds an extension to the manager.
20 *
21 * @deprecated 15.4
22 * @codeCoverageIgnore
23 *
24 * @param string $extension_name The extension name.
25 * @param WPSEO_Extension|null $extension The extension value object.
26 *
27 * @return void
28 */
29 public function add( $extension_name, WPSEO_Extension $extension = null ) {
30 _deprecated_function( __METHOD__, '15.4' );
31 }
32
33 /**
34 * Removes an extension from the manager.
35 *
36 * @deprecated 15.4
37 * @codeCoverageIgnore
38 *
39 * @param string $extension_name The name of the extension to remove.
40 *
41 * @return void
42 */
43 public function remove( $extension_name ) {
44 _deprecated_function( __METHOD__, '15.4' );
45 }
46
47 /**
48 * Returns the extension for the given extension name.
49 *
50 * @deprecated 15.4
51 * @codeCoverageIgnore
52 *
53 * @param string $extension_name The name of the extension to get.
54 *
55 * @return WPSEO_Extension|null The extension object or null when it doesn't exist.
56 */
57 public function get( $extension_name ) {
58 _deprecated_function( __METHOD__, '15.4' );
59
60 return null;
61 }
62
63 /**
64 * Returns all set extension.
65 *
66 * @deprecated 15.4
67 * @codeCoverageIgnore
68 *
69 * @return WPSEO_Extension[] Array with the extensions.
70 */
71 public function get_all() {
72 _deprecated_function( __METHOD__, '15.4' );
73
74 return [];
75 }
76
77 /**
78 * Checks if the plugin is activated within My Yoast.
79 *
80 * @deprecated 15.4
81 * @codeCoverageIgnore
82 *
83 * @param string $extension_name The extension name to check.
84 *
85 * @return bool True when the plugin is activated.
86 */
87 public function is_activated( $extension_name ) {
88 _deprecated_function( __METHOD__, '15.4' );
89
90 return false;
91 }
92 }
93 // phpcs:enable
94