add_filter( 'streamtube/core/mycred/button_donate', function( $args ){ $args['button_classes'][] = 'ms-sm-auto'; return $args; }, 10, 2 ); add_action( 'streamtube/core/mycred/button_donate/before', function( $args ){ $author = 0; if( is_singular( 'video' ) ){ global $post; $author = $post->post_author; } if( is_author() ){ $author = get_queried_object_id(); } $total_points = mycred_display_users_balance( $author ); if( $total_points ){ ?> '. get_userdata( $author )->display_name .'', '$'. number_format_i18n( $total_points ) .'' ); ?>