Filter whether to load a fragment or not.
The dynamic portion of the hook name, $slug, refers to the file name without extension. Passing a truthy value to the filter will short-circuit loading the fragment.
apply_filters( "beans_pre_load_fragment_{$slug}", bool $pre )
Return: (void)
Parameters
Name | Type | Description |
---|---|---|
$pre | bool | True to short-circuit, False to let the function run. |