PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 4.0.0
WP 2FA – Two-factor authentication for WordPress v4.0.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / classes / Admin / Methods / Traits / class-white-label-trait.php
wp-2fa / includes / classes / Admin / Methods / Traits Last commit date
class-login-attempts.php 5 days ago class-methods-wizards-trait.php 5 days ago class-provider-trait.php 5 days ago class-settings-trait.php 5 days ago class-validation-trait.php 5 days ago class-white-label-trait.php 5 days ago index.php 5 days ago
class-white-label-trait.php
47 lines
1 <?php
2 /**
3 * Responsible for the plugin white label
4 *
5 * @package wp2fa
6 * @subpackage traits
7 * @copyright 2026 Melapress
8 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
9 * @link https://wordpress.org/plugins/wp-2fa/
10 */
11
12 namespace WP2FA\Admin\Methods\Traits;
13
14 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
15
16 if ( ! class_exists( '\WP2FA\Admin\Methods\Traits\WhiteLabel' ) ) {
17 /**
18 * Responsible for the white label
19 *
20 * @since 2.9.2
21 */
22 trait WhiteLabel {
23
24 /**
25 * Adds white label settings.
26 *
27 * @param array $default_settings - The array with default settings.
28 *
29 * @return array
30 */
31 public static function add_whitelabel_settings( array $default_settings ): array {
32 // To be implemented in the using class.
33 return $default_settings;
34 }
35
36 /**
37 * Returns white label option labels.
38 *
39 * @return array
40 */
41 public static function white_label_option_labels(): array {
42 // To be implemented in the using class.
43 return array();
44 }
45 }
46 }
47