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(); ?>

My Account section on the GiveWP website. ', 'give' ), Give_License::get_account_url() ); ?>

My Downloads section on the GiveWP website. ', 'give' ), Give_License::get_downloads_url() ); ?>

click here to upload GiveWP Add-on.', 'give' ), admin_url( 'plugin-install.php?tab=upload' ) ); ?>


visit network plugin install page to install add-ons.', 'give' ), network_admin_url( 'plugin-install.php' ) ); ?>

$refresh_status['count'] ) || ( $refresh_status['compare'] < date( 'Ymd' ) ); $button_title = __( 'Refresh limit reached. Licenses can only be refreshed 5 times per day.', 'give' ); $local_date = strtotime( get_date_from_gmt( date( 'Y-m-d H:i:s', $refresh_status['time'] ) ) ); ?>