| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/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 );
}
}