bp_notifications_bulk_management_dropdown()

Output the dropdown for bulk management of notifications.

Description

Source

File: bp-notifications/bp-notifications-template.php

1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
function bp_notifications_bulk_management_dropdown() {
    ?>
    <label class="bp-screen-reader-text" for="notification-select"><?php
        /* translators: accessibility text */
        _e( 'Select Bulk Action', 'buddyboss' );
    ?></label>
    <select name="notification_bulk_action" id="notification-select">
        <option value="" selected="selected"><?php _e( 'Bulk Actions', 'buddyboss' ); ?></option>
 
        <?php if ( bp_is_current_action( 'unread' ) ) : ?>
            <option value="read"><?php _e( 'Mark read', 'buddyboss' ); ?></option>
        <?php elseif ( bp_is_current_action( 'read' ) ) : ?>
            <option value="unread"><?php _e( 'Mark unread', 'buddyboss' ); ?></option>
        <?php endif; ?>
        <option value="delete"><?php _e( 'Delete', 'buddyboss' ); ?></option>
    </select>
    <input type="submit" id="notification-bulk-manage" class="button action" value="<?php esc_attr_e( 'Apply', 'buddyboss' ); ?>">
    <?php
}

Changelog

Changelog
Version Description
BuddyPress 2.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.