Post SMTP Installed Extensions
get_extensions(); foreach ( $extensions as $slug => $extension) : $short_name = $extension['license_manager']->get_slug( $extension['plugin_data']['Name'] ); $nonce = $short_name . '_license_key-nonce'; $license_data = get_option( $short_name . '_license_active' ); $license_key = get_option( $short_name . '_license_key' ); $license_valid = is_object( $license_data ) && $license_data->license === 'valid'; $license_field_class = $license_valid ? 'readonly' : ''; $license_field_value = $license_valid ? base64_encode($license_key) : ''; wp_nonce_field( $nonce, $nonce ); ?>
type="password" name="post_smtp_extension[]" class="regular-text" value="" placeholder="Serial Key">
Activate
Deactivate