Files
roi-theme/wp-content/plugins/thrive-visual-editor/thrive-dashboard/traits/trait-singleton.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

39 lines
546 B
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
/**
* Trait TD_Singleton
*/
trait TD_Singleton {
protected static $_instance;
/**
* General singleton implementation for class instance
*
* @return static
*/
public static function get_instance() {
if ( empty( static::$_instance ) ) {
static::$_instance = new self();
}
return static::$_instance;
}
/**
* Avoid cloning
*/
protected function __clone() {
}
}