BUTTON_CLICKED_IDENTIFIER
BUTTON_CLICKED_IDENTIFIER ='unblock'
Block common HTML tags!
SET_VISUAL_PARENT_IF_CLASS_OF_PARENT =array('et_pb_video_box' => 1, 'ast-oembed-container' => 1, 'wpb_video_wrapper' => 1)
If a given class of the `parentElement` is given, set the visual parent. This is needed for some page builder and theme compatibilities. This is only used on client-side (see `findVisualParent`).
DEPENDANT_VISIBILITY_CONTAINERS =array('[role="tabpanel"]', '.eael-tab-content-item', '.wpcs_content_inner', '.op3-contenttoggleitem-content', '.pum-overlay', '[data-elementor-type="popup"]', '.wp-block-ub-content-toggle-accordion-content-wrap', '.w-popup-wrap', '.oxy-lightbox_inner[data-inner-content=true]', '.oxy-pro-accordion_body', '.oxy-tab-content', '.kt-accordion-panel', '.vc_tta-panel-body')
Before trying to create a visual content blocker, check if the node is inside a given container and if it is, wait until this container is visible. For example, you are providing a sidebar with blocked content, you need to pass the selector for this sidebar.
$headlessContentBlocker :\DevOwl\HeadlessContentBlocker\HeadlessContentBlocker
See `HeadlessContentBlocker`
registerOutputBuffer()
Apply the content blocker attributes to the output buffer when it is enabled.
You can start this output buffer multiple times as it is safe to avoid execution of same strings multiple times for the headless content blocker (e.g. multiple WordPress hook lifecycle).
createBlockables(\DevOwl\HeadlessContentBlocker\HeadlessContentBlocker $headlessContentBlocker): array<mixed,\DevOwl\HeadlessContentBlocker\AbstractBlockable>
Get all available blockables.
\DevOwl\HeadlessContentBlocker\HeadlessContentBlocker | $headlessContentBlocker |