bp_nouveau_activity_comment_buttons( array $args = array() )
Output the action buttons for the activity comments
Description
Parameters
- $args
-
(Optional) See bp_nouveau_wrapper() for the description of parameters.
Default value: array()
Source
File: bp-templates/bp-nouveau/includes/activity/template-tags.php
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 | function bp_nouveau_activity_comment_buttons( $args = array () ) { $output = join( ' ' , bp_nouveau_get_activity_comment_buttons( $args ) ); ob_start(); /** * Fires after the defualt comment action options display. * * @since BuddyPress 1.6.0 */ do_action( 'bp_activity_comment_options' ); $output .= ob_get_clean(); $has_content = trim( $output , ' ' ); if ( ! $has_content ) { return ; } if ( ! $args ) { $args = array ( 'classes' => array ( 'acomment-options' ) ); } bp_nouveau_wrapper( array_merge ( $args , array ( 'output' => $output ) ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.