bp_activity_post_update_item_id

  • apply_filters( 'bp_activity_post_update_item_id', $_POST['whats-new-post-in']     )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-actions.php :: Trac Source Line: 202
      	if ( !is_user_logged_in() || bp_is_activity_component() || !bp_is_current_action( 'post' ) )
      		return false;
      
      	// Check the nonce
      	check_admin_referer( 'post_update', '_wpnonce_post_update' );
      
      	// Get activity info
      	$content = apply_filters( 'bp_activity_post_update_content', $_POST['whats-new']             );
      	$object  = apply_filters( 'bp_activity_post_update_object',  $_POST['whats-new-post-object'] );
      	$item_id = apply_filters( 'bp_activity_post_update_item_id', $_POST['whats-new-post-in']     );
      
      	// No activity content so provide feedback and redirect
      	if ( empty( $content ) ) {
      		bp_core_add_message( __( 'Please enter some content to post.', 'buddypress' ), 'error' );
      		bp_core_redirect( wp_get_referer() );
      	}
      
      	// No existing item_id
      	if ( empty( $item_id ) ) {
      		$activity_id = bp_activity_post_update( array( 'content' => $content ) );
      

Comments are closed.