How to change post_permalink to Edit link?
- 
		Please help me i try to change buddypress preview from the post to direct edit 
 here my code
 add_filter(‘bp_blogs_activity_new_post_action’, ‘record_cpt_activity_action’, 1, 3);
 function record_cpt_activity_action( $activity_action, $post, $edit_post_link ) {
 global $bp;
 if( $post->post_type == ‘post’ ) {
 if ( is_multisite() )
 $activity_action = sprintf( __( ‘%1$s wrote a new article, %2$s, on the site %3$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘‘ . $post->post_title . ‘‘, ‘‘ . get_blog_option( $blog_id, ‘blogname’ ) . ‘‘ );else 
 $activity_action = sprintf( __( ‘%1$s Wrote Colab, %2$s’, ‘buddypress’ ), bp_core_get_userlink( (int) $post->post_author ), ‘‘ . $post->post_title . ‘‘ );} 
 return $activity_action;
 }
- The topic ‘How to change post_permalink to Edit link?’ is closed to new replies.