• Resolved markux

    (@markux)


    Hi, great works!!

    I’m trying to render some chart in my personal admin plugin in multisite installation.

    In my plugin page:

    /wp-admin/admin.php?page=myplugin/monitor.php

    this is the code:

    $plugin = Visualizer_Plugin::instance();
    // set general modules
    $plugin->setModule( Visualizer_Module_Setup::NAME );
    $plugin->setModule( Visualizer_Module_Sources::NAME );
    $plugin->setModule( Visualizer_Module_Frontend::NAME );

    and if I debug the function Frontend::renderChart it works well, but the problem is with javascript that is not included (it seems wp_register_script and wp_enqueue_script doesn’t works)

    I checked wp_footer and it’s ok.

    suggest?
    thanks
    Marco

    https://wordpress.org/plugins/visualizer/

Viewing 1 replies (of 1 total)
  • Thread Starter markux

    (@markux)

    I forgot, I replaced in Frontend.php:

    $this->_addAction( 'wp_enqueue_scripts', 'enqueueScripts' );

    with:

    $this->_addAction( 'admin_enqueue_scripts', 'enqueueScripts' );

Viewing 1 replies (of 1 total)

The topic ‘do_shortcode in admin panel’ is closed to new replies.