WPSEO_Replace_Vars::retrieve_post_month()
Retrieve the post/page/cpt's published month for use as replacement string.
Метод класса: WPSEO_Replace_Vars{}
Хуков нет.
Возвращает
Строку|null
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->retrieve_post_month();
Код WPSEO_Replace_Vars::retrieve_post_month() WPSEO Replace Vars::retrieve post month Yoast 22.4
private function retrieve_post_month() { if ( empty( $this->args->ID ) ) { return null; } return get_the_date( 'F', $this->args->ID ); }