for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Give Settings Page/Tab
*
* @package Give
* @subpackage Classes/Give_Settings_API
* @copyright Copyright (c) 2016, WordImpress
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.8
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'Give_Settings_API' ) ) :
* Give_Settings_API.
* @sine 1.8
class Give_Settings_API extends Give_Settings_Page {
* Flag to check if enable saving option for setting page or not
* @since 1.8.17
* @var bool
protected $enable_save = false;
* Constructor.
public function __construct() {
$this->id = 'api';
$this->label = esc_html__( 'API', 'give' );
parent::__construct();
* Get settings array.
* @return array
public function get_settings() {
// Get settings.
$settings = apply_filters( 'give_settings_api', array(
array(
'id' => 'give_tools_api',
'type' => 'title',
'table_html' => false
),
'id' => 'api',
'name' => esc_html__( 'API', 'give' ),
'type' => 'api',
'type' => 'sectionend',
)
));
* Filter the settings.
* @param array $settings
$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
// Output.
return $settings;
endif;
return new Give_Settings_API();