class-settings-addon.php
8 years ago
class-settings-advanced.php
8 years ago
class-settings-cmb2-backward-compatibility.php
8 years ago
class-settings-display.php
8 years ago
class-settings-email.php
8 years ago
class-settings-gateways.php
8 years ago
class-settings-general.php
8 years ago
class-settings-license.php
8 years ago
class-settings-license.php
67 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Give Settings Page/Tab |
| 4 | * |
| 5 | * @package Give |
| 6 | * @subpackage Classes/Give_Settings_License |
| 7 | * @copyright Copyright (c) 2016, WordImpress |
| 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | * @since 1.8 |
| 10 | */ |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; // Exit if accessed directly |
| 14 | } |
| 15 | |
| 16 | if ( ! class_exists( 'Give_Settings_License' ) ) : |
| 17 | |
| 18 | /** |
| 19 | * Give_Settings_License. |
| 20 | * |
| 21 | * @sine 1.8 |
| 22 | */ |
| 23 | class Give_Settings_License extends Give_Settings_Page { |
| 24 | |
| 25 | /** |
| 26 | * Constructor. |
| 27 | */ |
| 28 | public function __construct() { |
| 29 | $this->id = 'licenses'; |
| 30 | $this->label = esc_html__( 'Licenses', 'give' ); |
| 31 | |
| 32 | parent::__construct(); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Get settings array. |
| 37 | * |
| 38 | * @since 1.8 |
| 39 | * @return array |
| 40 | */ |
| 41 | public function get_settings() { |
| 42 | $settings = array(); |
| 43 | |
| 44 | /** |
| 45 | * Filter the licenses settings. |
| 46 | * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8 |
| 47 | */ |
| 48 | $settings = apply_filters( 'give_settings_licenses', $settings ); |
| 49 | |
| 50 | /** |
| 51 | * Filter the settings. |
| 52 | * |
| 53 | * @since 1.8 |
| 54 | * |
| 55 | * @param array $settings |
| 56 | */ |
| 57 | $settings = apply_filters( 'give_get_settings_' . $this->id, $settings ); |
| 58 | |
| 59 | // Output. |
| 60 | return $settings; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | endif; |
| 65 | |
| 66 | return new Give_Settings_License(); |
| 67 |