bb_get_tagged_topic_ids
The BuddyPress bb get tagged topic ids function.
Description
bb_get_tagged_topic_ids( $tag_id );
Parameters (1)
- 0. $tag_id
- The tag id.
Usage
if ( !function_exists( 'bb_get_tagged_topic_ids' ) ) { require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-topic-tags.php'; } // The tag id. $tag_id = null; // NOTICE! Understand what this does before running. $result = bb_get_tagged_topic_ids($tag_id);
Defined (1)
The function is defined in the following location(s).
- /bp-forums/bbpress/bb-includes/functions.bb-topic-tags.php
- function bb_get_tagged_topic_ids( $tag_id ) {
- global $wp_taxonomy_object, $tagged_topic_count;
- if ( $topic_ids = (array) $wp_taxonomy_object->get_objects_in_term( $tag_id, 'bb_topic_tag', array( 'field' => 'tt_id' ) ) ) {
- $tagged_topic_count = count($topic_ids);
- return apply_filters('get_tagged_topic_ids', $topic_ids);
- } else {
- $tagged_topic_count = 0;
- return false;
- }
- }