bbp_get_forum_parent

  • apply_filters( 'bbp_get_forum_parent', (int) $parent_id, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 532
       * @uses bbp_get_forum_id() To get the forum id
       * @uses get_post_field() To get the forum parent
       * @uses apply_filters() Calls 'bbp_get_forum_parent' with the parent & forum id
       * @return int Forum parent
       */
      function bbp_get_forum_parent( $forum_id = 0 ) {
      	$forum_id  = bbp_get_forum_id( $forum_id );
      	$parent_id = get_post_field( 'post_parent', $forum_id );
      
      	return apply_filters( 'bbp_get_forum_parent', (int) $parent_id, $forum_id );
      }
      
      /**
       * Return array of parent forums
       *
       * @since bbPress (r2625)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_id() To get the forum id
       * @uses bbp_get_forum() To get the forum
      

Comments are closed.