[buddypress-trac] [BuddyPress Trac] #8429: Fire a hook when non-BP page is detected
buddypress-trac
noreply at wordpress.org
Wed Jan 27 22:25:42 UTC 2021
#8429: Fire a hook when non-BP page is detected
----------------------------------------+---------------------
Reporter: Gabe462 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 8.0.0
Component: Core | Version: 7.1.0
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug |
----------------------------------------+---------------------
Comment (by r-a-y):
I don't think this new hook is necessary. If you want to dequeue assets,
hook onto `'wp_enqueue_scripts' ` as usual and use the `is_buddypress()`
function to determine if the current page is a BuddyPress page, then
dequeue anything you do not want loaded.
The proposed hook would still require you to hook onto an action like
`'wp_enqueue_assets'` anyway.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8429#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list