Restarting Apache on Mac OS X

The command to restart apache on Mac OS X is:

 

WordPress Plugin Hooks: Plugin Finished Loading

Now that I have a plugin that can be activated and deactivated, it might be nice to know when the plugin has completed loading.

In the code below, I have added a function for this (line 43) , and an action hook (line 48). I’ve also added some comments to help explain things better. Also notice the echo statement (line 44). It’s only there for development of course, but it proves that the function is being called.

It is interesting to note that this action fires after *all* activated functions are finished loading. This could come in handy if you need to reference a different plugin from this one.

API reference: http://codex.wordpress.org/Plugin_API/Action_Reference/plugins_loaded