WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Extensions::invalidate() public Yoast 1.0

Invalidates the extension by removing its option.

Это метод класса: WPSEO_Extensions{}

Хуков нет.


Null. Ничего.


$WPSEO_Extensions = new WPSEO_Extensions();
$WPSEO_Extensions->invalidate( $extension );
$extension(строка) (обязательный)
The extension to invalidate.

Код WPSEO_Extensions::invalidate() Yoast 15.1.1

public function invalidate( $extension ) {
	 * Make sure we clear the current site and multisite options.
	 * Because plugins can be site-activated or multi-site activated we need to clear
	 * all possible options.
	 * If we knew here that the extension in question was network activated
	 * we could do this a lot more easily.
	delete_option( $this->get_option_name( $extension ) );
	delete_site_option( $this->get_option_name( $extension ) );