PluginProbe
seQura / 4.0.0
seQura v4.0.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Services / Settings / class-settings-service.php

class-settings-service.php in seQura 4.0.0, at src/Services/Settings/class-settings-service.php

37 lines 760 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Settings Service Class
4 *
5 * @package SeQura/WC
6 * @subpackage SeQura/WC/Services
7 */
8
9 namespace SeQura\WC\Services\Service;
10
11 /**
12 * Settings Service Class
13 */
14 class Settings_Service implements Interface_Settings_Service {
15
16 /**
17 * Check if the current page is the settings page.
18 */
19 public function is_settings_page(): bool {
20 return is_admin() && isset( $_GET['page'] ) && $this->get_page() === sanitize_text_field( $_GET['page'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
21 }
22
23 /**
24 * Get the configuration page slug.
25 */
26 public function get_page(): string {
27 return 'sequra';
28 }
29
30 /**
31 * Get the configuration page parent slug.
32 */
33 public function get_parent_page(): string {
34 return 'woocommerce';
35 }
36 }
37