notification_center = $notification_center; } /** * Initializes the integration. * * On admin_init, it is checked whether the notification to auto-update Yoast SEO needs to be shown or removed. * This is also done when major WP core updates are being enabled or disabled, * and when automatic updates for Yoast SEO are being enabled or disabled. * * @return void */ public function register_hooks() { \add_action( 'admin_init', [ $this, 'remove_notification' ] ); } /** * Removes the notification from the notification center, if it exists. * * @return void */ public function remove_notification() { $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID ); } }