DescriptionDescription
This filter is called once the inline JavaScript of all grids in a page is generated.
It allows to change the inline script or to completely remove it if you want more control or initialize grids from your own script.
ArgumentsArguments
Argument | Type | Description |
$script | string | Inline JavaScript of grids |
ExampleExample
PHP
functions.php
function prefix_inline_script( $script ) {
// We prevent initialization of grids in page.
return '';
}
add_filter( 'wp_grid_builder/grid/inline_script', 'prefix_inline_script', 10, 1 );