WPSEO_Import_Platinum_SEO::import_robots_meta()
Finds all the robotsmeta fields to import and deals with them.
There are four potential values that Platinum SEO stores:
- index,folllow
- index,nofollow
- noindex,follow
- noindex,nofollow
We only have to deal with the latter 3, the first is our default.
Метод класса: WPSEO_Import_Platinum_SEO{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->import_robots_meta();
Код WPSEO_Import_Platinum_SEO::import_robots_meta() WPSEO Import Platinum SEO::import robots meta Yoast 24.6
protected function import_robots_meta() { $this->import_by_meta_robots( 'index,nofollow', [ 'nofollow' ] ); $this->import_by_meta_robots( 'noindex,follow', [ 'noindex' ] ); $this->import_by_meta_robots( 'noindex,nofollow', [ 'noindex', 'nofollow' ] ); }