id = 'licenses'; $this->label = esc_html__( 'Licenses', 'give' ); parent::__construct(); // Do not use main form for this tab. if ( give_get_current_setting_tab() === $this->id ) { // Remove default parent form. add_action( 'give-settings_open_form', '__return_empty_string' ); add_action( 'give-settings_close_form', '__return_empty_string' ); lw_harbor_display_legacy_license_page_notice('GiveWP'); // Refresh licenses when visit license setting page. give_refresh_licenses(); } } /** * Get settings array. * * @return array * @since 1.8 */ public function get_settings() { $settings = array(); /** * Filter the licenses settings. * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8 */ $settings = apply_filters( 'give_settings_licenses', $settings ); /** * Filter the settings. * * @param array $settings * * @since 1.8 */ $settings = apply_filters( 'give_get_settings_' . $this->id, $settings ); // Output. return $settings; } /** * Render license key field * * @since 2.5.0 */ public function output() { ob_start(); ?>