| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Conditions; |
| 4 |
|
| 5 |
class Error extends Condition { |
| 6 |
public function get_priority(): int { |
| 7 |
return 20; |
| 8 |
} |
| 9 |
|
| 10 |
public function get_label(): string { |
| 11 |
return __( '404 Error', 'templately' ); |
| 12 |
} |
| 13 |
|
| 14 |
public function get_type(): string { |
| 15 |
return 'singular'; |
| 16 |
} |
| 17 |
|
| 18 |
public function get_name(): string { |
| 19 |
return 'error'; |
| 20 |
} |
| 21 |
|
| 22 |
public function check( $args = [] ): bool { |
| 23 |
return is_404(); |
| 24 |
} |
| 25 |
} |