• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

hooks

  1. XenWord uninstall.php File

    XenWord uninstall.php File

    Instead of using a deactivation hook or the register_uninstall_hook, XenWord has an uninstall.php file that runs automatically if a user deletes the XenWord plugin. This was rewritten this afternoon to include a conditional for checking if the column exists. <?php /** * Filename...
  2. WordPress Development: Eating and Digesting Spaghetti

    The Best Way to Initialize WordPress Plugins

    Purpose The bootstrap file for WordPress plugins can be done in many different ways. I recently changed the PHP file but am always on the lookout for a better way. Considerations Proper Hook No God Class (Uh oh.) No hooks in constructors Use Namespaces Don't mix types (Interfaces, Classes)...
Top