I'd like to distribute some custom style sheets (
.js) with my plugin. Is there a right way to do this in Wordpress? I can think of a number of different ways to do this, but I'd prefer to use one that's Wordpress recommended, or a defacto time and true standard. Specifically
Where should I place my CSS/JS files? In
wp-content/plugins/my-plugin/css/etc.css? Somewhere else?
How should I generate URLs to these assets in my plugin?
<?php site_url() . '/wp-content/plugins/my-plugin/css/etc.css ?>Is it safe to hardcode
wp-content/plugin, or is there a better function/functions to use?