Posted By

webStruck_ on 03/17/08


Tagged

php plugin wordpress functions widget best practice


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Wiederkehr
Bluewall


Widget Best Practice: Using Functions


 / Published in: PHP
 

URL: http://funcdoc.wordpress.com/2008/02/04/writing-wordpress-widget-best-practices/

  1. function myplugin_widget_init()
  2. {
  3. // Register myplugin_widget::display() and myplugin_widget::control()
  4. }
  5.  
  6. function myplugin_widget_display()
  7. {
  8. // Echo content
  9. }
  10.  
  11. function myplugin_widget_control()
  12. {
  13. // Echo administration control
  14. }

Report this snippet  

You need to login to post a comment.