bbp_update_forum_id

  • apply_filters( 'bbp_update_forum_id', $forum_id, $post_id )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 70
       *
       * @since bbPress (r3181)
       *
       * @param int $post_id The post to update
       * @param int $forum_id The forum
       */
      function bbp_update_forum_id( $post_id, $forum_id ) {
      
      	// Allow the forum ID to be updated 'just in time' before save
      	$forum_id = apply_filters( 'bbp_update_forum_id', $forum_id, $post_id );
      
      	// Update the post meta forum ID
      	update_post_meta( $post_id, '_bbp_forum_id', (int) $forum_id );
      }
      
      /**
       * Update a posts topic meta ID
       *
       * @since bbPress (r3181)
       *
      

Comments are closed.