Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * Plugin Name: Test-Plugin
  4. * Plugin URI: htto;//test-plugin.org
  5. * Version: 7.2
  6. * Description: Just some boring test ;-D
  7. * Author: M. Grollmann
  8. * Author URI: http://maxg-dev.org
  9. */
  10.  
  11.  
  12. add_action("test.hook", "heyo", 10);
  13.  
  14.  
  15. add_action("install_helloworld", "install_plugin", 10);
  16.  
  17.  
  18. add_action("deactivate_helloworld", "deactivate_plugin", 10);
  19.  
  20. add_action("activate_helloworld", "activate_plugin", 10);
  21.  
  22. function activate_plugin()
  23. {
  24.     return true;
  25. }
  26.  
  27. function deactivate_plugin()
  28. {
  29.     return true;
  30. }
  31.  
  32. function install_plugin()
  33. {
  34.     return true;
  35. }
  36.  
  37. function heyo($name)
  38. {
  39.     return 'Gangstar-'.$name;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement