bp_blogs_activity_new_post_content

  • apply_filters( 'bp_blogs_activity_new_post_content',      $activity_content, $post, $post_permalink )

    Source Reference:

    • Component: BuddyPress :: bp-blogs
      File: /bp-blogs/bp-blogs-functions.php :: Trac Source Line: 188
      				$activity_action  = sprintf( __( '%1$s wrote a new post, %2$s, on the site %3$s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', '<a href="' . get_blog_option( $blog_id, 'home' ) . '">' . get_blog_option( $blog_id, 'blogname' ) . '</a>' );
      			else
      				$activity_action  = sprintf( __( '%1$s wrote a new post, %2$s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
      
      			$activity_content = $post->post_content;
      
      			bp_blogs_record_activity( array(
      				'user_id'           => (int)$post->post_author,
      				'action'            => apply_filters( 'bp_blogs_activity_new_post_action',       $activity_action,  $post, $post_permalink ),
      				'content'           => apply_filters( 'bp_blogs_activity_new_post_content',      $activity_content, $post, $post_permalink ),
      				'primary_link'      => apply_filters( 'bp_blogs_activity_new_post_primary_link', $post_permalink,   $post_id               ),
      				'type'              => 'new_blog_post',
      				'item_id'           => $blog_id,
      				'secondary_item_id' => $post_id,
      				'recorded_time'     => $post->post_modified_gmt
      			));
      		}
      
      		// Update the blogs last activity
      		bp_blogs_update_blogmeta( $blog_id, 'last_activity', bp_core_current_time() );
      

Comments are closed.