Current Path : /storage/v11800/newruvamithai/public_html/wp-content/plugins/pinterest-for-woocommerce/src/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/newruvamithai/public_html/wp-content/plugins/pinterest-for-woocommerce/src/PluginActivate.php |
<?php
/**
* Helper class for handling the activation hook.
*
* @package Automattic\WooCommerce\Pinterest
* @since 1.1.0
*/
namespace Automattic\WooCommerce\Pinterest;
use Automattic\WooCommerce\Pinterest\Admin\ActivationRedirect;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class PluginActivate
*/
class PluginActivate {
/**
* Activation hook
*
* @since 1.1.0
*/
public function activate(): void {
// Init the update class.
$this->init_plugin_update();
// Maybe update the redirect option.
( new ActivationRedirect() )->maybe_update_redirect_option();
}
/**
* Initialize the update helper class.
*
* @since 1.1.0
*/
protected function init_plugin_update(): void {
( new PluginUpdate() )->update_plugin_update_version_option();
}
}