# bbp-core/trunk/templates/user-subscriptions.php

Forumax – AI Powered Advanced Community Forum Plugin, version trunk. 61 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/trunk/code/templates/user-subscriptions.php
- Raw: https://pluginprobe.com/plugins/bbp-core/trunk/raw/templates/user-subscriptions.php
- Modified: 2026-04-10T15:32:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/trunk/code/templates/user-subscriptions.php#L10-L20`.

```php
<?php

/**
 * User Subscriptions
 *
 * @package bbPress
 * @subpackage Theme
 */

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

do_action( 'bbp_template_before_user_subscriptions' ); ?>

<?php if ( bbp_is_subscriptions_active() ) : ?>

	<?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>

		<div id="bbp-user-subscriptions" class="bbp-user-subscriptions">

			<?php bbp_get_template_part( 'form', 'topic-search' ); ?>

			<h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'forumax' ); ?></h2>
			<div class="bbp-user-section">

				<?php if ( bbp_get_user_forum_subscriptions() ) : ?>

					<?php bbp_get_template_part( 'loop', 'forums' ); ?>

				<?php else : ?>

					<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>

				<?php endif; ?>

			</div>

			<h2 class="entry-title"><?php esc_html_e( 'Subscribed Topics', 'forumax' ); ?></h2>
			<div class="bbp-user-section">

				<?php if ( bbp_get_user_topic_subscriptions() ) : ?>

					<?php bbp_get_template_part( 'loop',       'topics' ); ?>

					<?php bbp_get_template_part( 'pagination', 'topics' ); ?>

				<?php else : ?>

					<?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>

				<?php endif; ?>

			</div>
		</div><!-- #bbp-user-subscriptions -->

	<?php endif; ?>

<?php endif; ?>

<?php do_action( 'bbp_template_after_user_subscriptions' );

```
