Commenting out unwated CSS/scripts in HTML with PHP

Install Query Monitor to show your scripts and styles (#qm-assets) – specifically the ID used to register the scripts/styles. Then hook wp_print_scripts and use wp_dequeue_script() to remove it before it outputs. /** * Dequeue the jQuery UI script. * * Hooked to the wp_print_scripts action, with a late priority (100), * so that it is … Read more

Struggling with array and foreach loop

You can get an array with just the numbers by using array_values($your_array); It will return an array with just the numbers. Is this what you need, or a string with a comma separated list of IDs? If that’s the case, use this: implode(“,”,array_values($your_array)); Hope this helps.