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