Awesome Support Developer Documentation

wpas_notification_classes


Signature

apply_filters( 'wpas_notification_classes', $classes );

Typical Usage

Set notification classes

Parameters

  • $classes: Array

Returns

  • String

Located In

  • File: includes/functions-templating.php
  • Function: wpas_get_notification_markup

First Available

Version 3.2

Example Usage

function wpas_my_notification_classes( $classes ) {
    // set success notification class
    $classes['success'] = 'wpas-alert wpas-alert-success my-class-name';
    return $classes;
}
add_filter('wpas_notification_classes', 'wpas_my_notification_classes', 10, 1 );


More Topics In Filter Hooks

Share: