';
+ $alert_html .= '
' . $notice_title . '
';
+ $alert_html .= '
' . __(
+ 'Enter a valid license key for any of the following products on the settings screen.',
+ 'vk-blocks'
+ ) . '
';
+ $alert_html .= '
';
+
+ $alert_html .= '
' . __( 'Enter the license key', 'vk-blocks' ) . '
';
+
+ $alert_html .= '
' . sprintf(
+ /* translators: %s: 再読み込みURL */
+ __(
+ 'Even after valid license key registration you still seeing this message, please click here to reload.',
+ 'vk-blocks'
+ ),
+ $link_url
+ ) . '
';
+ $alert_html .= '
';
+ echo wp_kses_post( $alert_html );
+}
+
+/**
+ * Register update license key
+ *
+ * @param array $query_args : updatechacker array.
+ * @return $query_args
+ */
+function vk_blocks_get_license_check_query_arg( $query_args ) {
+ $options = get_option( 'vk_blocks_options' );
+ $license = esc_html( $options['vk_blocks_pro_license_key'] );
+
+ if ( ! empty( $license ) ) {
+ $query_args['vk-blocks-pro-license-key'] = $license;
+ }
+ $query_args['template'] = wp_get_theme()->Template;
+
+ return $query_args;
}