wpseo_allowed_dismissable_alerts

wpseo_allowed_dismissable_alerts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.24.1

apply_filters('wpseo_allowed_dismissable_alerts') is found 1 times:

  • /src/actions/alert-dismissal-action.php line 201
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    * Filter: 'wpseo_allowed_dismissable_alerts' - List of allowed dismissable alerts.
     *
     * @param string[] $allowed_dismissable_alerts Allowed dismissable alerts list.
     */
    $allowed_dismissable_alerts = \apply_filters( 'wpseo_allowed_dismissable_alerts', [] );
     
    if ( \is_array( $allowed_dismissable_alerts ) === false ) {
        return [];
    }
     
    // Only allow strings.

See this hook used in plugins: