bbp_update_topic_id

bbp_update_topic_id

Hook Type: filter

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_update_topic_id') is found 1 times:

  • /includes/core/functions.php line 125
     */
    function bbp_update_topic_id( $post_id = 0, $topic_id = 0 ) {
    
    	// Allow the topic ID to be updated 'just in time' before save
    	$topic_id = (int) apply_filters( 'bbp_update_topic_id', $topic_id, $post_id );
    
    	// Update the post meta topic ID
    	update_post_meta( $post_id, '_bbp_topic_id', $topic_id );
    
    	return $topic_id;
    }