id = 'api'; $this->label = esc_html__( 'API', 'give' ); parent::__construct(); } /** * Get settings array. * * @since 1.8 * @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, ), array( 'id' => 'api', 'name' => esc_html__( 'API', 'give' ), 'type' => 'api', ), array( 'id' => 'give_tools_api', 'type' => 'sectionend', 'table_html' => false, ), ) ); /** * Filter the settings. * * @since 1.8 * @param array $settings */ $settings = apply_filters( 'give_get_settings_' . $this->id, $settings ); // Output. return $settings; } } endif; return new Give_Settings_API();