WordPress.org

Ready to get started?Download WordPress

Forums

to add a widget for plugin (1 post)

  1. Black Cat
    Member
    Posted 6 years ago #

    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:

    <?php
    if( function_exists('plugin') ) {
    funzionedelplugin();
    }
    ?>
    -----------------------------------
    
    <?php echo $after_widget; ?>
    <?php
    }
    register_sidebar_widget('Mio Plugin',
    '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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags