oont-contents/plugins/elementor-pro/modules/theme-builder/conditions/not-found404.php
2025-02-08 15:10:23 +01:00

29 lines
503 B
PHP

<?php
namespace ElementorPro\Modules\ThemeBuilder\Conditions;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Not_Found404 extends Condition_Base {
public static function get_type() {
return 'singular';
}
public static function get_priority() {
return 20;
}
public function get_name() {
return 'not_found404';
}
public function get_label() {
return esc_html__( '404 Page', 'elementor-pro' );
}
public function check( $args ) {
return is_404();
}
}