Could do better


function bbboing_init() {
  
/**
   * Need to extract hook docBlock information from here
   */
  do_action( "bbboing_loaded" );
}  
 

WordPress PHP Documentation standard: Hooks (Actions and Filters)


function bbboing_activation() {
  static $plugin_basename = null;
  if ( !$plugin_basename ) {
    $plugin_basename = plugin_basename(__FILE__);
    add_action( "after_plugin_row_${plugin_basename}", __FUNCTION__ );   
    require_once( "admin/oik-activation.php" );
  }  
  $depends = "oik:2.1-alpha";
  bw_backtrace();
  oik_plugin_lazy_activation( __FILE__, $depends, "oik_plugin_plugin_inactive" );
}
 
  • Callbacks
  • Dynamic hook names
  • Dynamic hook APIs