I am writing a custom extension, and i wanted to add specific JS and CSS into admin dashboard (on every page), and also different JS/CSS files on front-end...
I have seen many answers, but all of them talk about index.php modifications.. Is not there a simpler method, like worpdress has, something like this phseudo-code:
function AddMyScript(){
echo '<link rel="stylesheet"..................
//or $this->AddScript('myCss', 1.01, url......)
}
add_action('wp_head', 'AddMyScript');
also, please add two words about how to implement & call that default.php