bp_messages_options()
Output the markup for the message type dropdown.
Description
Source
File: bp-messages/bp-messages-template.php
function bp_messages_options() {
?>
<label for="message-type-select" class="bp-screen-reader-text"><?php
/* translators: accessibility text */
_e( 'Select:', 'buddyboss' );
?></label>
<select name="message-type-select" id="message-type-select">
<option value=""><?php _e( 'Select', 'buddyboss' ); ?></option>
<option value="read"><?php _ex('Read', 'Past Participle: Messages have been read', 'buddyboss') ?></option>
<option value="unread"><?php _e('Unread', 'buddyboss') ?></option>
<option value="all"><?php _e('All', 'buddyboss') ?></option>
</select>
<?php if ( ! bp_is_current_action( 'notices' ) ) : ?>
<a href="#" id="mark_as_read"><?php _e('Mark as Read', 'buddyboss') ?></a>
<a href="#" id="mark_as_unread"><?php _e('Mark as Unread', 'buddyboss') ?></a>
<?php wp_nonce_field( 'bp_messages_mark_messages_read', 'mark-messages-read-nonce', false ); ?>
<?php wp_nonce_field( 'bp_messages_mark_messages_unread', 'mark-messages-unread-nonce', false ); ?>
<?php endif; ?>
<a href="#" id="delete_<?php echo bp_current_action(); ?>_messages"><?php _e( 'Delete Selected', 'buddyboss' ); ?></a>
<?php wp_nonce_field( 'bp_messages_delete_selected', 'delete-selected-nonce', false ); ?>
<?php
}
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.