Soft reject (don't prefix third-party scripts)

I’m trying to upload my new plugin, but got a soft rejection with this comment.

  1. Don’t prefix third-party scripts / styles: https://envato.d.pr/MgZU6Y

And do not understand how to fix it ))) My plugin uses a third-party libs for some tasks and how to include them correctly in this case?

Hi

replace/merge fontawesome and bootstrap with your plugin name. prefix should not strat with third party plugin.

Thanks

But it didn’t start, it starts from my unique plugin name and next third-party lib name to better understanding.

wp_enqueue_style(LIVEPREVIEWPRO_PLUGIN_NAME . ‘_fontawesome_css’ …)
wp_enqueue_style(LIVEPREVIEWPRO_PLUGIN_NAME . ‘_bootstrap_css’…)

I do not understand what they want from me?)

I think they want this

wp_enqueue_style(‘fontawesome_css’ …)
wp_enqueue_style(‘bootstrap_css’…)

you can try with this way:

wp_enqueue_script( ‘font-awesome-css’, ‘…’ );

1 Like