# tablepress/3.4/libraries/freemius/templates/account/partials/deactivate-license-button.php

TablePress – Tables in WordPress made easy, version 3.4. 36 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/freemius/templates/account/partials/deactivate-license-button.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/freemius/templates/account/partials/deactivate-license-button.php
- Modified: 2022-12-19T11:32:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/freemius/templates/account/partials/deactivate-license-button.php#L10-L20`.

```php
<?php
	/**
	 * @package     Freemius
	 * @copyright   Copyright (c) 2015, Freemius, Inc.
	 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
	 * @since       2.0.0
	 */

	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	/**
	 * @var array    $VARS
	 * @var Freemius $fs
	 * @var string   $slug
	 */
	$slug = $VARS['slug'];
	$fs   = $VARS['freemius'];

	$blog_id    = ! empty( $VARS['blog_id'] ) && is_numeric( $VARS['blog_id'] ) ?
		$VARS['blog_id'] :
		'';
	$install_id = ! empty( $VARS['install_id'] ) && FS_Site::is_valid_id( $VARS['install_id'] ) ?
		$VARS['install_id'] :
		'';

	$action = 'deactivate_license';
?>
<form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>" method="POST">
	<input type="hidden" name="fs_action" value="<?php echo $action ?>">
	<?php wp_nonce_field( trim("{$action}:{$blog_id}:{$install_id}", ':') ) ?>
	<input type="hidden" name="install_id" value="<?php echo $install_id ?>">
	<input type="hidden" name="blog_id" value="<?php echo $blog_id ?>">
	<button type="button" class="fs-deactivate-license button<?php echo ! empty( $VARS['class'] ) ? ' ' . $VARS['class'] : '' ?>"><?php fs_echo_inline( 'Deactivate License', 'deactivate-license', $slug ) ?></button>
</form>
```
