bbp_get_tab_index

  • apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 860
      	 *                             prevent the increment
      	 * @return int $bbp->tab_index The global tab index
      	 */
      	function bbp_get_tab_index( $auto_increment = true ) {
      		global $bbp;
      
      		if ( true === $auto_increment )
      			++$bbp->tab_index;
      
      		return apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index );
      	}
      
      /**
       * Output a select box allowing to pick which forum/topic a new topic/reply
       * belongs in.
       *
       * Can be used for any post type, but is mostly used for topics and forums.
       *
       * @since bbPress (r2746)
       *
      

Comments are closed.