For the complete documentation index, see llms.txt. This page is also available as Markdown.

Assets

PorterWP registers and enqueues its assets through dedicated configuration classes. You can customise the default arguments of these registrations using four public filters:

Each filter receives the defaults array as its first argument. Return your modified array to override handles, dependencies, versions, or file paths.

add_filter( 'porter_public_styles_default_args', function ( $defaults ) {
    $defaults['src'] = get_stylesheet_directory_uri() . '/assets/css/public.min.css';
    return $defaults;
} );

See the linked pages for full details and examples.

Last updated