Borlabs & loading Map Block
-
Hello there,
I have used this block in combination with Borlabs on another side, where I used this hook to incet the Borlabs shortcode for the Block:
add_filter( 'render_block', function ( $block_content, $block ) {
if ( is_plugin_active('borlabs-cookie/borlabs-cookie.php') ) {
if ( $block['blockName'] === 'wpmapblock/wp-map-block' && is_plugin_active( 'wp-map-block/wp-map-block.php' )) {
$shortcode = do_shortcode('[borlabs-cookie id="open-street-map" type="content-blocker"]' . $block_content . '[/borlabs-cookie]');
return $shortcode;
}
}
return $block_content;
}, 10, 2 );Which works for the Borlabs Blocker, but when unblocked, in the new Borlabs version it doesn’t load the map anymore.
Can you please advise me on which function I execute in js after unblocking, to initialize loading?
Do you have an “initialise” function I can use after unblocking content?
Thank you and best regards
Julian
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.