From: Chuck Scott Date: Fri, 24 Feb 2017 16:20:29 +0000 (-0500) Subject: Added hooks help file support to adminHooks.php X-Git-Tag: v1.0.2^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0710f8c3f1c00b8e9de7376253211b56d68d4ba4;p=WP-Plugins%2Fglm-member-db-sample.git Added hooks help file support to adminHooks.php --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index e0ca786..99ec215 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -25,3 +25,20 @@ * * Also note that parameters will be in the context of the main admin controller constructor. */ + +// Add content to member detail page +add_filter('glm-member-db-admin-management-hooksHelp', function($content) { + + // Read in this plugin/addon hook help file + $fname = {definedPrefix}_PLUGIN_PATH.'/setup/hooksHelp.html'; + if (is_file($fname)) { + $hooksHelp = file_get_contents($fname); + if ($hooksHelp != false) { + $content .= $hooksHelp; + } + } + return $content; + }, + 10, + 2 +);