plugin register help (1 post)

  1. justinesmithies
    Posted 3 years ago #

    Can someone please help me out and show me what i have to change these lines to i.e. the format.

    // This registers our widget so it appears with the other available
    	// widgets and can be dragged and dropped into any active sidebars.
    	register_sidebar_widget(array('Donate Extra Form', 'widgets'), 'widget_donateextraform');
    	register_sidebar_widget(array('Donate Extra Total', 'widgets'), 'widget_donateextratotal');
    	register_sidebar_widget(array('Donate Extra Wall', 'widgets'), 'widget_donateextrawall');
    	// This registers our optional widget control form. Because of this
    	// our widget will have a button that reveals a 300x100 pixel form.
    	register_widget_control(array('Donate Extra Form', 'widgets'), 'widget_donateextraform_control', 300, 100);
    	register_widget_control(array('Donate Extra Total', 'widgets'), 'widget_donateextratotal_control', 300, 100);
    	register_widget_control(array('Donate Extra Wall', 'widgets'), 'widget_donateextrawall_control', 300, 100);

    I realise i need to prefix them with wp_ but i cannot work out the new layout format.


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by justinesmithies
  • This topic is not resolved
  • WordPress version: 3.4.2


No tags yet.