Reply To: wp_enqueue_script issue on activity page
Hi Thanks for the help.
Henry and Hugo.
I Just read the message.
If I understand correctly should I change the statement:
function my_dequeue_script() {
if ( bp_is_activity() )
wp_dequeue_script( ‘xyz-custom-script’ );
}
add_action( ‘wp_print_scripts’, ‘my_dequeue_script’, 100 );
to something else and if so What would it be in my case.
Sorry for my ignorance and thanks for you patience.