beans_pre_load_fragment_{$slug}

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

NameTypeDescription
$preboolTrue to short-circuit, False to let the function run.