PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.6
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.6
28.6 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 All 130 releases
wordpress-seo / src / introductions / application / ai-fix-assessments-upsell.php

ai-fix-assessments-upsell.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.6, at src/introductions/application/ai-fix-assessments-upsell.php

71 lines 1.4 KB
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\Introductions\Application;
4
5 use Yoast\WP\SEO\Helpers\Product_Helper;
6 use Yoast\WP\SEO\Helpers\User_Helper;
7 use Yoast\WP\SEO\Introductions\Domain\Introduction_Interface;
8
9 /**
10 * Represents the introduction for the AI fix assessments feature.
11 */
12 class Ai_Fix_Assessments_Upsell implements Introduction_Interface {
13
14 use User_Allowed_Trait;
15
16 public const ID = 'ai-fix-assessments-upsell';
17
18 /**
19 * Holds the user helper.
20 *
21 * @var User_Helper
22 */
23 private $user_helper;
24
25 /**
26 * Holds the product helper.
27 *
28 * @var Product_Helper
29 */
30 private $product_helper;
31
32 /**
33 * Constructs the introduction.
34 *
35 * @param User_Helper $user_helper The user helper.
36 * @param Product_Helper $product_helper The product helper.
37 */
38 public function __construct( User_Helper $user_helper, Product_Helper $product_helper ) {
39 $this->user_helper = $user_helper;
40 $this->product_helper = $product_helper;
41 }
42
43 /**
44 * Returns the ID.
45 *
46 * @return string The ID.
47 */
48 public function get_id() {
49 return self::ID;
50 }
51
52 /**
53 * Returns the requested pagination priority. Lower means earlier.
54 *
55 * @return int The priority.
56 */
57 public function get_priority() {
58 return 20;
59 }
60
61 /**
62 * Returns whether this introduction should show.
63 * We no longer show this introduction, so we always return false.
64 *
65 * @return bool Whether this introduction should show.
66 */
67 public function should_show() {
68 return false;
69 }
70 }
71