PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | modules/subscriptions/class-settings.php +36 -0 16.2-beta → 16.3 View file →
@@ -1,0 +1,36 @@
1 +<?php
2 +/**
3 + * The Subscriptions settings.
4 + *
5 + * This is a class that contains helper functions for the Subscriptions settings module.
6 + *
7 + * @package automattic/jetpack-subscriptions
8 + */
9 +
10 +namespace Automattic\Jetpack\Modules\Subscriptions;
11 +
12 +/**
13 + * Class Settings
14 + */
15 +class Settings {
16 + /**
17 + * The default reply-to option.
18 + *
19 + * @var string
20 + */
21 + public static $default_reply_to = 'comment';
22 +
23 + /**
24 + * Validate the reply-to option.
25 + *
26 + * @param string $reply_to The reply-to option to validate.
27 + * @return bool Whether the reply-to option is valid or not.
28 + */
29 + public static function is_valid_reply_to( $reply_to ) {
30 + $valid_values = array( 'author', 'no-reply', 'comment' );
31 + if ( in_array( $reply_to, $valid_values, true ) ) {
32 + return true;
33 + }
34 + return false;
35 + }
36 +}