Support » Plugins » to add a widget for plugin

  • Hello
    I am Italian
    I am creating a plugin and I would like that it was posizionabile as widget.
    The code that I have read in the documentations should be correct yet it doesn’t go.
    I have added this code at the end of the plugin but from an error.
    I bring the code and the relative error:

    if( function_exists('plugin') ) {
    <?php echo $after_widget; ?>
    register_sidebar_widget('Mio Plugin',

    and error (in the admin page):

    Fatal error: Call to undefined function: register_sidebar_widget() in c:\program files\easyphp1-8\www\prove\wp-content\plugins\mio_plugin\mio_plugin.php on line 267

  • The topic ‘to add a widget for plugin’ is closed to new replies.