HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/bellecouture/wp-content/plugins/templately/includes/Builder/Conditions/Error.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();
	}
}