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 |