Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #8429, comment 5


Ignore:
Timestamp:
01/27/2021 10:33:35 PM (4 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8429, comment 5

    initial v1  
    11I 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.
    22
    3 The proposed hook would still require you to hook onto an action like `'wp_enqueue_assets'` anyway.
     3The proposed hook would still require you to hook onto an action like `'wp_enqueue_scripts'` anyway.