✘✘ 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/sys-temp/schema-aggregator/infrastructure//schema-aggregator-watcher.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Infrastructure;

use Yoast\WP\SEO\Conditionals\No_Conditionals;
use Yoast\WP\SEO\Helpers\Options_Helper;
use Yoast\WP\SEO\Integrations\Integration_Interface;

/**
 * Watcher for the enable_schema_aggregation_endpoint option.
 *
 * Monitors the enable_schema_aggregation_endpoint option and sets a timestamp when first enabled.
 */
class Schema_Aggregator_Watcher implements Integration_Interface {

	use No_Conditionals;

	/**
	 * The options helper.
	 *
	 * @var Options_Helper
	 */
	protected $options_helper;

	/**
	 * Schema_Aggregator_Watcher constructor.
	 *
	 * @param Options_Helper $options_helper The options helper.
	 */
	public function __construct( Options_Helper $options_helper ) {
		$this->options_helper = $options_helper;
	}

	/**
	 * Initializes the integration.
	 *
	 * This is the place to register hooks and filters.
	 *
	 * @return void
	 */
	public function register_hooks() {
		\add_action( 'update_option_wpseo', [ $this, 'check_schema_aggregator_enabled' ], 10, 2 );
	}

	// phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification -- They can really be anything.

	/**
	 * Checks if the enable_schema_aggregation_endpoint option has been enabled for the first time.
	 *
	 * @param array $old_value The old value of the option.
	 * @param array $new_value The new value of the option.
	 *
	 * @return bool Whether the schema_aggregator_enabled_on timestamp was set.
	 */
	public function check_schema_aggregator_enabled( $old_value, $new_value ): bool {
		if ( $old_value === false ) {
			$old_value = [];
		}

		if ( ! \is_array( $old_value ) || ! \is_array( $new_value ) ) {
			return false;
		}

		$option_key    = 'enable_schema_aggregation_endpoint';
		$timestamp_key = 'schema_aggregation_endpoint_enabled_on';

		$old_enabled = isset( $old_value[ $option_key ] ) && (bool) $old_value[ $option_key ];
		$new_enabled = isset( $new_value[ $option_key ] ) && (bool) $new_value[ $option_key ];

		if ( ! $old_enabled && $new_enabled ) {
			$current_timestamp = $this->options_helper->get( $timestamp_key );

			if ( empty( $current_timestamp ) ) {
				$this->options_helper->set( $timestamp_key, \time() );
				return true;
			}
		}

		return false;
	}

	// phpcs:enable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
}


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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
27 Sep 2026 1.30 AM
docteuh / users
0755
elements-context-map
--
14 Sep 2026 12.02 AM
docteuh / users
0755
enhancement
--
14 Sep 2026 12.02 AM
docteuh / users
0755
indexable-repository
--
14 Sep 2026 12.02 AM
docteuh / users
0755
schema-pieces
--
14 Sep 2026 12.02 AM
docteuh / users
0755
schema_map
--
14 Sep 2026 12.02 AM
docteuh / users
0755
aggregator-config.php
1.873 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
config.php
4.046 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
filtering-strategy-factory.php
1.437 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260828011807.svg
1.299 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
loadable-interface.php
0.279 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
meta-tags-context-memoizer-adapter.php
0.641 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
premium-active-conditional.php
0.35 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
schema-aggregator-conditional.php
0.879 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
schema-aggregator-watcher.php
2.429 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
wordpress-current-site-url-provider.php
0.653 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

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