| @@ -10,9 +10,11 @@ | ||
| 10 | 10 | |
| 11 | 11 | $templates_lists = apply_filters( 'blockspare_template_library', $blocks_lists ); |
| 12 | 12 | $block_pattern_categories =[]; |
| 13 | 13 | foreach($templates_lists as $tl){ |
| 14 | + if($tl['content'] !== 'https://www.blockspare.com/'){ | |
| 14 | 15 | array_push($block_pattern_categories,$tl['item']); |
| 16 | + } | |
| 15 | 17 | } |
| 16 | 18 | |
| 17 | 19 | foreach($block_pattern_categories as $cat_name){ |
| 18 | 20 | foreach(array_unique($cat_name) as $name){ |
| @@ -26,8 +28,9 @@ | ||
| 26 | 28 | } |
| 27 | 29 | |
| 28 | 30 | $empty_template_array = []; |
| 29 | 31 | foreach($templates_lists as $template){ |
| 32 | + if($template['content'] !== 'https://www.blockspare.com/'){ | |
| 30 | 33 | $new_template_array = []; |
| 31 | 34 | $new_template_array = array( |
| 32 | 35 | 'title'=>$template['name'], |
| 33 | 36 | 'categories'=>$template['item'], |
| @@ -34,8 +37,9 @@ | ||
| 34 | 37 | 'content'=>$template['content'] |
| 35 | 38 | ); |
| 36 | 39 | |
| 37 | 40 | array_push($empty_template_array,$new_template_array); |
| 41 | + } | |
| 38 | 42 | |
| 39 | 43 | } |
| 40 | 44 | // Register pattern |
| 41 | 45 | if(!empty($empty_template_array)){ |