bp_before_attachment

  • do_action( 'bp_before_attachment' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/attachment.php :: Trac Source Line: 6
      <?php get_header(); ?>
      
      	<div id="content">
      		<div class="padder">
      
      			<?php do_action( 'bp_before_attachment' ); ?>
      
      			<div class="page" id="attachments-page" role="main">
      
      				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      
      					<?php do_action( 'bp_before_blog_post' ) ?>
      
      					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      
      						<div class="author-box">
      							<?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
      							<p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), str_replace( '<a href=', '<a rel="author" href=', bp_core_get_userlink( $post->post_author ) ) ); ?></p>
      						</div>
      

Comments are closed.