bbp_update_topic_id

  • apply_filters( 'bbp_update_topic_id', $topic_id, $post_id )

    Source Reference:

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

Comments are closed.