PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.3
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.3
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 19.1 All 128 releases
wordpress-seo / src / conditionals / settings-conditional.php

settings-conditional.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.3, at src/conditionals/settings-conditional.php

41 lines 992 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yoast\WP\SEO\Conditionals;
4
5 /**
6 * Class Settings_Conditional.
7 */
8 class Settings_Conditional implements Conditional {
9
10 /**
11 * Holds User_Can_Manage_Wpseo_Options_Conditional.
12 *
13 * @var User_Can_Manage_Wpseo_Options_Conditional
14 */
15 protected $user_can_manage_wpseo_options_conditional;
16
17 /**
18 * Constructs Settings_Conditional.
19 *
20 * @param User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional The User_Can_Manage_Wpseo_Options_Conditional.
21 */
22 public function __construct(
23 User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional
24 ) {
25 $this->user_can_manage_wpseo_options_conditional = $user_can_manage_wpseo_options_conditional;
26 }
27
28 /**
29 * Returns whether or not this conditional is met.
30 *
31 * @return bool Whether or not the conditional is met.
32 */
33 public function is_met() {
34 if ( ! $this->user_can_manage_wpseo_options_conditional->is_met() ) {
35 return false;
36 }
37
38 return true;
39 }
40 }
41