bbp_is_single_user_engagements()
Check if current page is a user engagements page
Description Description
Return Return
(bool) True if it's a user's replies page, false if not
Source Source
File: includes/common/template.php
function bbp_is_single_user_engagements() { global $wp_query; // Assume false $retval = false; // Check query if ( ! empty( $wp_query->bbp_is_single_user_engagements ) && ( true === $wp_query->bbp_is_single_user_engagements ) ) { $retval = true; } // Filter & return return (bool) apply_filters( 'bbp_is_single_user_engagements', $retval ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |