I don’t really know, I’ve never used effects in WP, but from studying the registered scripts list, it appears you need to enqueue each effect you want to use, not just effects core. That does not explain why the external UI core causes everything to work.
I would also expect the dependencies of, say ‘jquery-effects-explode’, were resolved when it was registered. There should be no need to additionally enqueue UI core. For that matter, you shouldn’t need to enqueue ‘jquery-effects-explode’. Specify it as a dependency when you enqueue your own script and all the necessary meta links should be output.
I would suggest enqueuing your own script with the proper dependencies and not enqueue anything else. You can examine the source HTML of the page to satisfy yourself that all the necessary files are all linked in. I’m suspicious that redundant enqueuing is somehow confusing the issue.
thank’s a lot for answering my question. i will be shore to try your suggestions.
let you know how it turns out.
Hi Bcworkz,
Jest want to let you know that your suggestion work’s and it has been integrated to the plugin.
so cheers for you and again thank you
Awesome! I wasn’t totally sure and couldn’t imagine any easy test I could do to verify, so I just put out the suggestion anyway. Thanks for returning with the results.