PHP code example of wp-launchpad / bud-assets

1. Go to this page and download the library: Download wp-launchpad/bud-assets library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-launchpad / bud-assets example snippets


$assets
    ->with_script('/app.js')
    ->enqueue();

$assets
    ->with_script('/app.js')
    ->register();

$assets
    ->with_style('/app.css')
    ->enqueue();

$assets
    ->with_style('/app.css')
    ->register();

$assets
    ->with_style('/app.css')
    ->with_query(function (\LaunchpadBudAssets\Builders\AvailabilityQuery $query) {
        $query->with_block('my-block')
        return $query;
    })
    ->enqueue();