Home/ Documentation/ Developers/ Pinegrow WordPress Plugin API

Pinegrow WordPress Plugin API

Description of API specific to the WordPress plugin edition of Pinegrow.

WordPress filters

Introduced in version 1.0.12

The following filters can be used to load JavaScript and CSS files into the editor.

$styles = apply_filters('pinegrow_editor_styles', $styles);

and

$scripts = apply_filters('pinegrow_editor_scripts', $scripts);

$styles and $scripts are arrays of relative or absolute urls.

These filters will let you load custom CSS and JS files in the Pinegrow editor. JS files can follow PG standard plugin format as described on Developers | Pinegrow Web Editor.