PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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
← All changes | admin/class-option-tab.php +20 -2 18.028.5 View file →
@@ -71,8 +71,26 @@
71 71 return (bool) $this->get_argument( 'save_button', true );
72 72 }
73 73
74 74 /**
75 + * Retrieves whether the tab hosts beta functionalities.
76 + *
77 + * @return bool True whether the tab hosts beta functionalities.
78 + */
79 + public function is_beta() {
80 + return (bool) $this->get_argument( 'beta', false );
81 + }
82 +
83 + /**
84 + * Retrieves whether the tab hosts premium functionalities.
85 + *
86 + * @return bool True whether the tab hosts premium functionalities.
87 + */
88 + public function is_premium() {
89 + return (bool) $this->get_argument( 'premium', false );
90 + }
91 +
92 + /**
75 93 * Gets the option group.
76 94 *
77 95 * @return string The option group.
78 96 */
@@ -82,10 +100,10 @@
82 100
83 101 /**
84 102 * Retrieves the variable from the supplied arguments.
85 103 *
86 - * @param string $variable Variable to retrieve.
87 - * @param string|mixed $default_value Default to use when variable not found.
104 + * @param string $variable Variable to retrieve.
105 + * @param string|mixed $default_value Default to use when variable not found.
88 106 *
89 107 * @return mixed|string The retrieved variable.
90 108 */
91 109 protected function get_argument( $variable, $default_value = '' ) {