• File: recent-content-task-trait.php
  • Full Path: /home/satp2352/public_html/multitasjayautama.com/01/src/task-list/application/tasks/recent-content-task-trait.php
  • Date Modified: 05/22/2026 6:32 AM
  • File size: 504 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace Yoast\WP\SEO\Task_List\Application\Tasks;

/**
 * Trait for tasks that are about recent content.
 */
trait Recent_Content_Task_Trait {

	/**
	 * Returns the recency timestamp.
	 *
	 * @return string
	 */
	public function get_recency_timestamp(): string {
		return \gmdate( 'Y-m-d H:i:s', \strtotime( '-2 months' ) );
	}
}