| Server IP : 213.186.33.2 / Your IP : 216.73.216.39 Web Server : Apache System : Linux webm005.cluster102.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : symetry ( 21728) PHP Version : 8.2.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/symetry/www/wp-content/plugins/wordpress-seo/src/tracking/application/ |
Upload File : |
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace Yoast\WP\SEO\Tracking\Application;
use Yoast\WP\SEO\Helpers\Options_Helper;
/**
* The tracker of actions.
*/
class Action_Tracker {
/**
* Holds the options helper instance.
*
* @var Options_Helper
*/
private $options_helper;
/**
* The constructor.
*
* @param Options_Helper $options_helper The options helper.
*/
public function __construct(
Options_Helper $options_helper
) {
$this->options_helper = $options_helper;
}
/**
* Stores the version the user was on when an action was first performed.
*
* @param string $action_to_track The action to track.
*
* @return void
*/
public function track_version_for_performed_action( string $action_to_track ): void {
$this->options_helper->set( $action_to_track, \WPSEO_VERSION );
}
}