Server IP : 209.38.156.173 / Your IP : 216.73.216.128 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1534260/cwd/plugins/wordpress-seo/src/integrations/alerts/ |
Upload File : |
<?php namespace Yoast\WP\SEO\Integrations\Alerts; use Yoast\WP\SEO\Integrations\Integration_Interface; /** * Dismissable_Alert class. */ abstract class Abstract_Dismissable_Alert implements Integration_Interface { /** * Holds the alert identifier. * * @var string */ protected $alert_identifier; /** * {@inheritDoc} */ public static function get_conditionals() { return []; } /** * {@inheritDoc} */ public function register_hooks() { \add_filter( 'wpseo_allowed_dismissable_alerts', [ $this, 'register_dismissable_alert' ] ); } /** * Registers the dismissable alert. * * @param string[] $allowed_dismissable_alerts The allowed dismissable alerts. * * @return string[] The allowed dismissable alerts. */ public function register_dismissable_alert( $allowed_dismissable_alerts ) { $allowed_dismissable_alerts[] = $this->alert_identifier; return $allowed_dismissable_alerts; } }