WPSEO_Admin_User_Profile::clear_author_sitemap_cache()
Clear author sitemap cache when settings are changed.
Метод класса: WPSEO_Admin_User_Profile{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Admin_User_Profile = new WPSEO_Admin_User_Profile(); $WPSEO_Admin_User_Profile->clear_author_sitemap_cache( $meta_id, $object_id, $meta_key );
- $meta_id(int) (обязательный)
- The ID of the meta option changed.
- $object_id(int) (обязательный)
- The ID of the user.
- $meta_key(строка) (обязательный)
- The key of the meta field changed.
Список изменений
С версии 3.1 | Введена. |
Код WPSEO_Admin_User_Profile::clear_author_sitemap_cache() WPSEO Admin User Profile::clear author sitemap cache Yoast 22.4
public function clear_author_sitemap_cache( $meta_id, $object_id, $meta_key ) { if ( $meta_key === '_yoast_wpseo_profile_updated' ) { WPSEO_Sitemaps_Cache::clear( [ 'author' ] ); } }