/**
 * Return the mark read link for the current notification.
 *
 * @since BuddyPress (1.9.0)
 */
function bp_get_the_notification_mark_read_link()
{
    // Start the output buffer
    ob_start();
    ?>

		<a href="<?php 
    bp_the_notification_mark_read_url();
    ?>
" class="mark-read primary"><?php 
    _e('Read', 'buddypress');
    ?>
</a>

		<?php 
    $retval = ob_get_clean();
    /**
     * Filters the mark read link for the current notification.
     *
     * @since BuddyPress (1.9.0)
     *
     * @param string $retval HTML for the mark read link for the current notification.
     */
    return apply_filters('bp_get_the_notification_mark_read_link', $retval);
}
Пример #2
0
/**
 * Return the mark read link for the current notification.
 *
 * @since BuddyPress (1.9.0)
 */
function bp_get_the_notification_mark_read_link()
{
    // Start the output buffer
    ob_start();
    ?>

		<a href="<?php 
    bp_the_notification_mark_read_url();
    ?>
" class="mark-read primary"><?php 
    _e('Read', 'buddypress');
    ?>
</a>

		<?php 
    $retval = ob_get_clean();
    return apply_filters('bp_get_the_notification_mark_read_link', $retval);
}