bbp_get_subscriptions_template()
Get the user subscriptions template
Description
Return
(string) Path to template file
Source
File: bp-forums/core/template-loader.php
function bbp_get_subscriptions_template() { $nicename = bbp_get_displayed_user_field( 'user_nicename' ); $user_id = bbp_get_displayed_user_id(); $templates = array( 'single-user-subscriptions-' . $nicename . '.php', // Single User Subs nicename 'single-user-subscriptions-' . $user_id . '.php', // Single User Subs ID 'subscriptions-' . $nicename . '.php', // Subscriptions nicename 'subscriptions-' . $user_id . '.php', // Subscriptions ID 'subscriptions.php', // Subscriptions 'user.php', // User ); return bbp_get_query_template( 'subscriptions', $templates ); }
Changelog
Version | Description |
---|---|
bbPress (r4225) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.