wpce_asset_handle v3.20
Filters the asset handles for an element type.
Asset handles are used to automatically enqueue element scripts/styles when they appear on a page.
Parameters
string $handleThe handle.
string $element_idThe ID of the element type.
string $typeWhat type of asset handle is being filtered. Either
"script"or"style".
Example
php
add_filter('wpce_asset_handle', function (string $handle, string $element_id, string $type) {
return "wpce_{$element_id}_{$type}";
}, 10, 3);