Yoast\WP\SEO\Expiring_Store\Application\Ports

Expiring_Store_Repository_Interface::findpublicYoast 1.0

Finds a non-expired value by key.

Метод класса: Expiring_Store_Repository_Interface{}

Хуков нет.

Возвращает

Строку|null. The JSON-encoded value, or null if not found or expired.

Использование

$Expiring_Store_Repository_Interface = new Expiring_Store_Repository_Interface();
$Expiring_Store_Repository_Interface->find( $key, $current_datetime ): ?string;
$key(строка) (обязательный)
The key to find.
$current_datetime(строка) (обязательный)
The current datetime in 'Y-m-d H:i:s' format.

Код Expiring_Store_Repository_Interface::find() Yoast 27.7

public function find( string $key, string $current_datetime ): ?string;