How to start JS immediately after loading the ”Notifications page”
-
For example,
This code will be launched in before loading “Profile Page”.function buddypress_profile_layout() { global $bp; if (BP_XPROFILE_SLUG != $bp->current_component) return false; wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen-child/js/test.js', array('jquery'), '1.0', true); } add_filter('wp_enqueue_scripts', 'buddypress_profile_layout');
But,
I want a code that launched in after loading “Notifications page”.Would you mind teaching me how to do that?
Thanks.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- You must be logged in to reply to this topic.