Skip to content

Commit

Permalink
Fixing asset call
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Apr 19, 2022
1 parent 0c75493 commit 1ba22ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mantle/assets/class-asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ public function media( string $media = '' ): Asset {
*/
public function register(): void {
hook_callable( 'wp_enqueue_scripts', fn () => $this->register_asset() );
hook_callable( 'admin_enqueue_scripts', fn () => $this->register_asset() );
}

/**
Expand Down

0 comments on commit 1ba22ce

Please sign in to comment.