Yoast\WP\SEO\Helpers
Indexing_Helper::set_reason() public Yoast 1.0
Sets the indexing reason.
{} Это метод класса: Indexing_Helper{}
Хуков нет.
Возвращает
null.
Использование
$Indexing_Helper = new Indexing_Helper(); $Indexing_Helper->set_reason( $reason );
- $reason(строка) (обязательный)
- The indexing reason.
Код Indexing_Helper::set_reason() Indexing Helper::set reason Yoast 15.6.2
public function set_reason( $reason ) {
$this->options_helper->set( 'indexing_reason', $reason );
/*
* Remove any pre-existing notification, so that a new notification
* (with a possible new reason) can be added.
*/
$this->notification_center->remove_notification_by_id(
Indexing_Notification_Integration::NOTIFICATION_ID
);
}