Files
roi-theme/wp-content/plugins/thrive-visual-editor/inc/classes/conditional-display/conditions/class-string-equals.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

50 lines
794 B
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Conditions;
use TCB\ConditionalDisplay\Condition;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class String_Equals extends Condition {
/**
* @return string
*/
public static function get_key() {
return 'string_equals';
}
/**
* @return string
*/
public static function get_label() {
return esc_html__( 'String equals', 'thrive-cb' );
}
public function apply( $data ) {
$a = $data['field_value'];
$b = $this->get_value();
return strcmp( $a, $b ) === 0;
}
public static function get_operators() {
return [
'equals' => [
'label' => '=',
],
];
}
public static function is_hidden() {
return true;
}
}