dbout/wp-assets

Help library to manage Wordpress assets

dev-master 2021-05-08 10:07 UTC

This package is auto-updated.

Last update: 2024-11-08 17:33:02 UTC


README

Librairie Wordpress permettant de gérer les assets.

Configuration minimale

Installation

composer require dbout/wp-assets

Utilisation

use Dbout\WpAssets\Asset\Style;
use Dbout\WpAssets\Asset\Script;

(new Style('my-style', get_stylesheet_directory_uri() . 'app.css'))->register();
(new Script('my-script', get_stylesheet_directory_uri() . 'app.js'))->register();