This is the foundation plugin that should be included on all sites by Elli & Friends.
composer require ellifriends/wp-ef-foundation
This plugin contains some helper functions:
asset('path/to/file')
will return the url path to a file in theassets
directory in the theme. There are a second optional argument that will change the directory to look in, default isassets
mix('path/to/file')
will check the content ofmix-manifest.json
and return the versioned file url or the file url without version if it don't exists. There are a second optional argument that will change the directory to look in, default isassets
MIT © Elli & Friends