sitecrafting / conifer

:evergreen_tree: A powerful WordPress library plugin for OO development
https://www.coniferplug.in
MIT License
18 stars 2 forks source link

Support different assets.version file paths #105

Closed acobster closed 4 years ago

acobster commented 5 years ago

As a Conifer user, when registering/enqueuing scripts or styles I want to be able to specify my own cache-busting mechanism or file, instead of using the hard-coded assets.version file path.

Acceptance Criteria:

Example Usage

    $this->register_script(
      'my-script',
      'my-script.js',
      [],
      ['file' => 'my-assets-version.txt']
    );

This tells get_assets_version() to look for a path/to/theme/my-assets-version.txt file, instead of the default path/to/theme/assets.version.