Files
roi-theme/wp-content/plugins/thrive-ultimatum/thrive-dashboard/inc/automator/action-fields/class-slack-message-title-field.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

56 lines
1.1 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-automator
*/
namespace TVE\Dashboard\Automator;
use Thrive\Automator\Items\Action_Field;
use Thrive\Automator\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Slack_Message_Title_Field extends Action_Field {
public static function get_name() {
return __( 'Message title', 'thrive-dash' );
}
public static function get_description() {
return __( 'Message title', 'thrive-dash' );
}
public static function get_placeholder() {
return __( 'Enter the title of your notification', 'thrive-dash' );
}
public static function get_id() {
return 'slack_message_title';
}
public static function get_type() {
return Utils::FIELD_TYPE_TEXT;
}
public static function get_validators() {
return [ 'required' ];
}
public static function is_ajax_field() {
return false;
}
public static function get_preview_template() {
return __( 'Message title:', 'thrive-dash' ) . '$$value';
}
public static function allow_dynamic_data() {
return true;
}
}