Help making my pagination plugin better

Ok, here are some pointers:

  • never run any meaningful code right from plugin body (especially don’t start queuing jQuery everywhere like you do – that’s asking for trouble), always do it at appropriate hooks;

  • learn how to use $default argument in get_option() will save you a lot of typing there;

  • learn how to use plugins_url() for reliable URL building to files;

  • learn submit_button(), not critical but nifty;

  • consider storing options in single array;

  • if you use options you should implement uninstall to delete them.

Leave a Comment