';
$alert_html .= '
VK Blocks Pro : ' . $notice_title . '
';
$alert_html .= '
' . __( 'Please 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 .= '
';
$alert_html .= __( 'If this display does not disappear even after entering a valid license key, re-acquire the update.', 'vk-blocks' );
$alert_html .= ' [ ' . __( 'Re-acquisition of updates', 'vk-blocks' ) . ' ]';
$alert_html .= '
';
$alert_html .= '
';
echo wp_kses_post( $alert_html );
}
}
if ( ! function_exists( 'vk_blocks_get_license_check_query_arg' ) ) {
/**
* 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 = '';
if ( ! empty( $options['vk_blocks_pro_license_key'] ) ) {
$license = esc_html(
preg_replace(
"/\A[\x20\xE3\x80\x80]++|[\x20\xE3\x80\x80]++\z/u",
'',
$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;
}
}
}