alleyinteractive/wp-asset-manager
Asset Manager is a toolkit for managing front-end assets and more tightly controlling where, when, and how they're loaded.
v1.4.4
486K downloads/mo
#4871 most downloaded on Packagist
alleyinteractive/wp-asset-manager
What this package is like to depend on
Last release 10 days ago
14 Aug 2026
Ships unpredictably
gaps range from 2 weeks to 1.5 years
Nearly every release is documented
notes for 20 of 21 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
21 releases · first in 2020
1 release in the last 12 months
see the full history below
Release timeline
21 releases · Oct 2020 to Aug 2026Releases
latest 21-
v1.4.414 Aug 2026Release notes
Open source →Changed
- Excluded the
WordPress.NamingConventions.PrefixAllGlobalssniff. WPCS 3.x enforces a four-character minimum prefix, which rejects the plugin's publishedam_prefix. - Test expectations adapt to the running WordPress version. WordPress 7.0 rebuilt
wp_kses_hair()on the HTML API, which lowercases SVG attribute names such asviewBoxand encodes single quotes as'. Both are cosmetic and the plugin's markup is unchanged (#76). - CI runs against the
release/v1.xmaintenance branch, and no longer starts the MySQL, Redis, and Memcached containers; the test bootstrap uses SQLite. - Releases are built and tagged from
release/v1.x. They are created as drafts, so that publishing a patch does not move the repository's "Latest" marker backwards onto an older series.
Fixed
- Added an explicit dependency on
alleyinteractive/composer-wordpress-autoloader. It was previously inherited frommantle-framework/testkit, which dropped it in v1.21.0, leaving a freshcomposer installunable to autoload the plugin's own classes. - Fixed a PHPStan type mismatch so the
conditionkey ofam_enqueue_script()is recognized as accepting both an array and a string (#72).
- Excluded the
-
v1.4.327 Jan 2025Release notes
Open source →What's Changed
- issue-66: Support registering assets to the wp dependency registry by @renatonascalves in #67
Full Changelog: v1.4.2...v1.4.3
Release notes
Open source →Changed
- Register an asset to the WP dependency registry. (#66)
- Available only if
QueryMonitoris active.
- Available only if
- Updated plugin header
descriptionto match the one in package and in the git repo. - Added support for
.phpunit-watcher.yml. - Fix alignment for
package.jsonandcomposer.json(Use spaces instead of tabs per.editorconfigrules).
-
v1.4.215 Jan 2025Release notes
Open source →Release notes
Open source →Fixed
- Fixed issue with array of data being passed to the
$srcargument ofam_enqueue_script().
- Fixed issue with array of data being passed to the
-
v1.4.115 Jan 2025Release notes
Open source →What's Changed
- Allow version argument to be null by @srtfisher in #69
Full Changelog: v1.4.0...v1.4.1
-
v1.4.014 Jan 2025Release notes
Open source →Fixed
- Added proper types for helper functions that support array in the first argument.
Asset_Manager_Preload::set_asset_types()should return an empty array if no valid arguments are passed.
Changed
- Migrates code into the
Alley\WP\Asset_Managernamespace. Legacy classes such
asAsset_Manager_ScriptsandAsset_Manager_Stylesare aliased to their new
namespace for backward compatibility. Helper functions are left un-namespaced. - Adds a dependency on Composer autoloader. For submodules, you can track the
production-builtbranch of the plugin or any tagged release (which will be
built) to include the dependencies.
Full Changelog: v1.3.7...v1.4.0
Release notes
Open source →Fixed
- Added proper types for helper functions that support array in the first argument.
- Fix:
Asset_Manager_Preload::set_asset_types()should return an empty array if no valid arguments are passed.
Changed
- Migrates code into the
Alley\WP\Asset_Managernamespace. Legacy classes such asAsset_Manager_ScriptsandAsset_Manager_Stylesare aliased to their new namespace for backward compatibility. Helper functions are left un-namespaced. - Adds a dependency on Composer autoloader. For submodules, you can track the
production-builtbranch of the plugin or any tagged release (which will be built) to include the dependencies.
-
v1.3.722 Mar 2024Release notes
Open source →Adds support for async and defer using the 'strategy' argument added for wp_enqueue_script in WordPress 6.3.
Release notes
Open source →- Adds support for async and defer using the 'strategy' argument added for wp_enqueue_script in WordPress 6.3.
-
v1.3.618 Dec 2023Release notes
Open source →- Adds support for running the plugin on a Windows hosting environment (#57)
Release notes
Open source →- Adds support for running the plugin on a Windows hosting environment (#57)
-
v1.3.508 Sep 2023 -
v1.3.401 Sep 2023Release notes
Open source →What's Changed
- PHP 8.2 deprecations by @anubisthejackle in #53
New Contributors
- @anubisthejackle made their first contribution in #53
Full Changelog: v1.3.3...v1.3.4
-
v1.3.325 Jul 2023Release notes
Open source →- Removes
visibility:hiddenSVG sprite style declaration, which breaks some SVG element references - Upgrades to
mantle-framework/testkitv0.11
Release notes
Open source →- Removes
visibility:hiddenSVG sprite style declaration, which breaks some SVG element references (#50) - Upgrades to
mantle-framework/testkitv0.11 (#50)
- Removes
-
v1.3.212 Jun 2023Release notes
Open source →Changed
- The SVG Sprite is no longer hidden with
display:noneand instead visually hidden and moved offscreen (#49)
- The SVG Sprite is no longer hidden with
-
v1.3.110 Jan 2023Release notes
Open source →- Check for array key before using when preloading assets (#47).
- Upgrades to
mantle-framework/testkitv0.10.1 (#47).
-
v1.3.006 Jan 2023Release notes
Open source →Changed
- Use
am_view_asset_errormeta capability to determine whether to display error messages related to asset enqueuing.am_view_asset_erroris mapped tomanage_optionsby default.
- Use
-
v1.2.020 Dec 2022Release notes
Open source →Added
am_symbol_is_registeredfor determining if a symbol is registered (#41)
Changed
- Filters kses allowed svg+use tags & attributes (#43)
Fixed
print_asset()no longer fails for local files on WP VIP environments (#40)
-
v1.1.227 Oct 2022Release notes
Open source →- Updates the requirements on
mantle-framework/testkitto permit the latest version (#36) - Addresses PHP 8 compatibility issue with the global usage in
Asset_Manager::add_core_asset()(#37) - Fixes a bug where
get_svg()returns false for local files on WP VIP environments (#39)
- Updates the requirements on
-
v1.1.126 Oct 2022Release notes
Open source →Adds support for registering SVG assets to be added to a template's sprite sheet, with methods for displaying those assets
-
v1.1.027 Sep 2022Nothing published for this version
-
v1.0.028 Jun 2022Release notes
Open source →Stable release 🎊
No large changes since v0.1.3 other than switching the unit tests over to Mantle Teskit
-
0.1.317 Jan 2022 -
0.1.213 Jul 2021Release notes
Open source →Added
- GPL License
- Caching for
am_asset_conditions - Composer Autoloader
- GitHub Actions CI
-
0.1.108 Oct 2020Release notes
Open source →Added
- Supports
include_anyin theconditionparameter for matching any condition (#10, #19) - Adds
am_preloadfor preloading assets of any supported type (#16) - Improves overall plugin documentation
Changed
- Uses the print media swap method for async-loaded styles, based on Filament Group's The Simplest Way to Load CSS Asynchronously (#13)
Fixed
- Includes the
mediaattribute only ifmediaexists (#7) - Uses self-closing link tags (#7)
- Ensures
in_footeris set (#8) - Corrects an issue where
loadCSSwas being output for load_methods other than defer (3510e8c)
Removed
am_enqueue_stylewithload_method => preloadis no longer supported. For backward compatibility this configuration will patch in a call toam_preloadand alsosyncenqueue the asset (127acbc)- The
loadCSSpreload polyfill is removed since it is no longer supported (5d820d9)
- Supports