Yoast_Plugin_Conflict::clear_error()publicYoast 1.0

Clear the notification for a plugin.

Метод класса: Yoast_Plugin_Conflict{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Yoast_Plugin_Conflict = new Yoast_Plugin_Conflict();
$Yoast_Plugin_Conflict->clear_error( $plugin_file );
$plugin_file(строка) (обязательный)
Clear the optional notification for this plugin.

Код Yoast_Plugin_Conflict::clear_error() Yoast 22.4

public function clear_error( $plugin_file ) {
	$identifier = $this->get_notification_identifier( $plugin_file );

	$notification_center = Yoast_Notification_Center::get();
	$notification_center->remove_notification_by_id( 'wpseo-conflict-' . $identifier );
}