function hello() { pluggable_serve("before_welcome_message"); $message = NULL; pluggable_serve("replace_welcome_message", $message); echo non_null_of($message, "Hello World"); echo "\n"; }
/** * Returns the plugins path * @param options A list of options to configure serve * @return string The plugin path (usually "plugins") */ function pluggable_plugin_path($options) { return non_null_of(array_safe_get($options, "plugins_path"), "plugins"); }