PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / trunk
WPSSO Core – Complete Schema Markup and Meta Tags vtrunk
22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / std / review / judgeme.php

judgeme.php in WPSSO Core – Complete Schema Markup and Meta Tags trunk, at lib/std/review/judgeme.php

47 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * IMPORTANT: READ THE LICENSE AGREEMENT CAREFULLY. BY INSTALLING, COPYING, RUNNING, OR OTHERWISE USING THE WPSSO CORE PREMIUM
4 * APPLICATION, YOU AGREE TO BE BOUND BY THE TERMS OF ITS LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF ITS LICENSE
5 * AGREEMENT, DO NOT INSTALL, RUN, COPY, OR OTHERWISE USE THE WPSSO CORE PREMIUM APPLICATION.
6 *
7 * License URI: https://wpsso.com/wp-content/plugins/wpsso/license/premium.txt
8 *
9 * Copyright 2020-2026 Jean-Sebastien Morisset (https://wpsso.com/)
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13
14 die( 'These aren\'t the droids you\'re looking for.' );
15 }
16
17 if ( ! class_exists( 'WpssoStdReviewJudgeme' ) ) {
18
19 class WpssoStdReviewJudgeme {
20
21 private $p; // Wpsso class object.
22
23 public function __construct( &$plugin ) {
24
25 $this->p =& $plugin;
26
27 if ( $this->p->debug->enabled ) {
28
29 $this->p->debug->mark();
30 }
31
32 if ( $this->p->notice->is_admin_pre_notices() ) {
33
34 $pkg_info = $this->p->util->get_pkg_info(); // Uses a local cache.
35 $short_pro = $pkg_info[ 'wpsso' ][ 'short_pro' ];
36 $judgeme_short = __( 'Judge.me', 'judgeme-product-reviews-woocommerce' );
37 $judgeme_long = __( 'Judge.me Product Reviews for WooCommerce', 'judgeme-product-reviews-woocommerce' );
38 $notice_key = 'notice-pro-required-judgeme';
39 $notice_msg = sprintf( __( 'The %1$s plugin is active.', 'wpsso' ), $judgeme_long ) . ' ';
40 $notice_msg .= sprintf( __( 'Please note that service API modules, like the one required to retrieve data from the %1$s service API, are provided with the %2$s edition.', 'wpsso' ), $judgeme_short, $short_pro );
41
42 $this->p->notice->warn( $notice_msg, $user_id = null, $notice_key, $dismiss_time = true );
43 }
44 }
45 }
46 }
47