Files
roi-theme/wp-content/plugins/thrive-product-manager/thrive-dashboard/inc/access-manager/class-tvd-am-functionality.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

43 lines
1.1 KiB
PHP
Executable File

<?php
namespace TVD\Dashboard\Access_Manager;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
abstract class Functionality {
public static function init() {
static::hooks();
}
abstract public static function hooks();
abstract public static function get_name();
abstract public static function get_tag();
abstract public static function get_default();
public static function update_option_value( $user_role, $updated_value ) {
update_option( static::get_option_name( $user_role ), $updated_value );
}
public static function get_option_name( $user_role ) {
return '_' . $user_role . '_' . static::get_tag();
}
public static function get_properties( $user_role ) {
return array(
'name' => static::get_name(),
'tag' => static::get_tag(),
'functionality_options' => static::get_options(),
'get_options_type' => static::get_options_type(),
'icon' => static::get_icon(),
'default_value' => static::get_default(),
'value' => static::get_option_value( $user_role ),
);
}
}