Suggestion for mapping blocks with wpb_map_all()

Posted in: Newspaper
Post count: 2

Just a suggestion here. I was playing with the ajax in visual composer, and found that it could not see my custom taxonomies. My solution was to delay the mapping of blocks, by altering functions.php
Problematic area, around line 883:

if(function_exists('wpb_map')) {
    //map all of our blocks in page builder
    td_global_blocks::wpb_map_all();
}

My alternative, using a filter to delay the mapping:

function my_wpb_map(){
	if(function_exists('wpb_map')) {
		//map all of our blocks in page builder
		td_global_blocks::wpb_map_all();
	}
}
add_filter('admin_init','my_wpb_map');

Thanks for a great theme!

Post count: 6600

Hi,

Thanks for this suggestion. I have added this to our list and we will consider it.

Have a nice day!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.