This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
@@ -59,6 +59,8 @@ class Yoast_Notification {
* - capabilities: Capabilities that a user must have for this Notification to show.
* - capability_check: How to check capability pass: all or any.
* - wpseo_page_only: Only display on wpseo page or on every page.
* - yoast_branding: Whether to show the Yoast SEO branding in the notification.
* - resolve_nonce: Security nonce to use in case of resolving the notification.
*
* @var array
*/
@@ -80,6 +82,7 @@ class Yoast_Notification {
'capabilities' => [],
'capability_check' => self::MATCH_ALL,
'yoast_branding' => false,
'resolve_nonce' => '',
];
/**
@@ -177,6 +180,15 @@ class Yoast_Notification {
return $this->options['priority'];
}
/**
* Get the nonce to resolve the alert.
*
* @return string
*/
public function get_resolve_nonce() {
return $this->options['resolve_nonce'];
}
/**
* Get the User Meta key to check for dismissal of notification.
*