WPSEO_Replace_Vars::retrieve_currentday()
Retrieve the current day for use as replacement string.
The $replacement variable is static because it doesn't change depending on the context. See https://github.com/Yoast/wordpress-seo/pull/1172#issuecomment-46019482.
Метод класса: WPSEO_Replace_Vars{}
Хуков нет.
Возвращает
Строку
. The current day.
Использование
// private - только в коде основоного (родительского) класса $result = $this->retrieve_currentday();
Код WPSEO_Replace_Vars::retrieve_currentday() WPSEO Replace Vars::retrieve currentday Yoast 24.1
private function retrieve_currentday() { static $replacement; if ( ! isset( $replacement ) ) { $replacement = date_i18n( 'j' ); } return $replacement; }