/grid/inline_script
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.
Argument | Type | Description |
$script | string | Inline JavaScript of grids |
[pastacode lang=”php” manual=”function%20prefix_inline_script(%20%24script%20)%20%7B%0A%09%2F%2F%20We%20prevent%20initialization%20of%20grids%20in%20page.%0A%09return%20”%3B%0A%0A%7D%0A%0Aadd_filter(%20’wp_grid_builder%2Fgrid%2Finline_script’%2C%20’prefix_inline_script’%2C%2010%2C%201%20)%3B” message=”” highlight=”” provider=”manual”/]