|
1
|
<?php |
|
2
|
// no price in the context. |
|
3
|
$price = $block->context['price'] ?? ''; |
|
4
|
|
|
5
|
if ( empty( $price ) || is_wp_error( $price ) ) { |
|
6
|
return ''; |
|
7
|
} |
|
8
|
|
|
9
|
if ( empty( $price->setup_fee_text ) ) { |
|
10
|
return ''; |
|
11
|
} |
|
12
|
|
|
13
|
// return the view. |
|
14
|
return 'file:./view.php'; |
|
15
|
|