wp.hooks.applyFilters( 'clanbite.notifications.accessibleConfirm', null custom, string message )Filters the confirmation dialog shown before a notification action that asks for confirmation.
Return a Promise that resolves to true (confirmed) or false to replace the built-in accessible dialog; return null to keep it.
Filter JavaScript
Parameters
$custom(null)Default
null(use the built-in dialog).$message(string)Plain-text confirmation message from the server.
Example
wp.hooks.addFilter( 'clanbite.notifications.accessibleConfirm', 'my-plugin/handler', function ( custom, message ) {
return custom;
} );Defined in src/blocks/notifications/notification-bell/view.js
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |