WordPress.org

Ready to get started?Download WordPress

Forums

Call to undefined function wp_register_sidebar_widget (WP 2.5) (31 posts)

  1. afshin222
    Member
    Posted 5 years ago #

    i have this problem also but when i use this code, this problem solved.

    function widget_dailytopten_init() {
            if(!function_exists('register_sidebar_widget')) { return; }
            function widget_dailytopten($args) {
    		echo $before_title
                          . 'My widget'
                          . $after_title;
    
    			Hello widget!
            }
            register_sidebar_widget('My sidget','widget_dailytopten');
        }
    add_action('plugins_loaded', 'widget_dailytopten_init');

    Regard, Afshin.m

Topic Closed

This topic has been closed to new replies.

About this Topic