When using the bfa_fallback_directory_path filter in private function setup_fallback_data(), it is possible to specify an own fallback Font Awesome directory. Works fine, extracts the version from a supplied package.json, adds it to URL, etc.
But the URL to stylesheet still links to default fallback, no filter available for this.
Fantastic feedback, thanks @tkes. Any chance you'd be willing to file a PR and I can add a credit to you in the plugin readme? That just makes it simpler for me to review and merge.
When using the
bfa_fallback_directory_path
filter inprivate function setup_fallback_data()
, it is possible to specify an own fallback Font Awesome directory. Works fine, extracts the version from a suppliedpackage.json
, adds it to URL, etc.But the URL to stylesheet still links to default fallback, no filter available for this.
Suggested fix, replace this:
With this:
This adds new filter
bfa_fallback_directory_uri
which then can be used in addition to above filter to supply the correct URL to stylesheet.