Files
roi-theme/wp-content/plugins/wp-marketing-automations/admin/view/class-bwfcrm-dashboard.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
990 B
PHP
Executable File

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class BWFCRM_Dashboard extends BWFCRM_Base_React_Page {
private static $ins = null;
public $page_data = [];
public static function get_instance() {
if ( null === self::$ins ) {
self::$ins = new self();
}
return self::$ins;
}
public function __construct() {
if ( isset( $_GET['page'] ) && 'autonami' === $_GET['page'] ) {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ), 100 );
add_filter( 'user_can_richedit', '__return_true' );
add_action( 'admin_notices', array( $this, 'remove_admin_notice' ), - 1 );
}
}
public function enqueue_assets() {
$this->prepare_data_for_enqueue();
$this->enqueue_app_assets( 'main' );
}
public function remove_admin_notice() {
remove_all_actions( 'admin_notices' );
remove_all_actions( 'all_admin_notices' );
}
public function render() {
?>
<div id="bwfcrm-page" class="bwfcrm-page"></div>
<?php
}
}