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 / extensions.php

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

77 lines 1.5 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 list of possible extensions for Yoast SEO.
12 *
13 * @deprecated 15.4
14 * @codeCoverageIgnore
15 */
16 class WPSEO_Extensions {
17
18 /**
19 * Checks if the plugin has been installed.
20 *
21 * @deprecated 15.4
22 * @codeCoverageIgnore
23 *
24 * @param string $extension The name of the plugin to check.
25 *
26 * @return bool Returns true when installed.
27 */
28 public function is_installed( $extension ) {
29 _deprecated_function( __METHOD__, 'WPSEO 15.4' );
30
31 return false;
32 }
33
34 /**
35 * Invalidates the extension by removing its option.
36 *
37 * @deprecated 15.4
38 * @codeCoverageIgnore
39 *
40 * @param string $extension The extension to invalidate.
41 */
42 public function invalidate( $extension ) {
43 _deprecated_function( __METHOD__, 'WPSEO 15.4' );
44 }
45
46 /**
47 * Checks if the extension is valid.
48 *
49 * @deprecated 15.4
50 * @codeCoverageIgnore
51 *
52 * @param string $extension The extension to get the name for.
53 *
54 * @return bool Returns true when valid.
55 */
56 public function is_valid( $extension ) {
57 _deprecated_function( __METHOD__, 'WPSEO 15.4' );
58
59 return false;
60 }
61
62 /**
63 * Returns the set extensions.
64 *
65 * @deprecated 15.4
66 * @codeCoverageIgnore
67 *
68 * @return array All the extension names.
69 */
70 public function get() {
71 _deprecated_function( __METHOD__, 'WPSEO 15.4' );
72
73 return [];
74 }
75 }
76 // phpcs:enable
77