# templately/3.0.2/includes/Builder/Conditions/Error.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 3.0.2. 25 lines.

- Page: https://pluginprobe.com/plugins/templately/3.0.2/code/includes/Builder/Conditions/Error.php
- Raw: https://pluginprobe.com/plugins/templately/3.0.2/raw/includes/Builder/Conditions/Error.php
- Modified: 2024-01-24T10:10:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/templately/3.0.2/code/includes/Builder/Conditions/Error.php#L10-L20`.

```php
<?php

namespace Templately\Builder\Conditions;

class Error extends Condition {
	public function get_priority(): int {
		return 20;
	}

	public function get_label(): string {
		return __( '404 Error', 'templately' );
	}

	public function get_type(): string {
		return 'singular';
	}

	public function get_name(): string {
		return 'error';
	}

	public function check( $args = [] ): bool {
		return is_404();
	}
}
```
