From: Chuck Scott Date: Fri, 24 Feb 2017 16:57:31 +0000 (-0500) Subject: Fixed issues with hooksHelp not properly reporting X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3bb12beb785974fbc7fad47aad54e9d3aa038257;p=WP-Plugins%2Fglm-member-db-nearme.git Fixed issues with hooksHelp not properly reporting --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 66630a3..e783a91 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -25,3 +25,21 @@ * * Also note that parameters will be in the context of the main admin controller constructor. */ + +// Add hooksHelp.html file to admin Management hooks output +add_filter('glm-member-db-admin-management-hooksHelp', function($content) { + + // Read in this plugin/addon hook help file + $fname = GLM_MEMBERS_NEARME_PLUGIN_PATH.'/setup/hooksHelp.html'; + if (is_file($fname)) { + $hooksHelp = file_get_contents($fname); + if ($hooksHelp != false) { + $content .= $hooksHelp; + } + } + return $content; + }, + 10, + 2 +); + diff --git a/setup/hooksHelp.html b/setup/hooksHelp.html index bbe0e75..f2a514d 100644 --- a/setup/hooksHelp.html +++ b/setup/hooksHelp.html @@ -1,16 +1,3 @@ - -

Sample Add-On

- - User Permission Hooks - - - some_hook_name - FILTER or ACTION - - - What this hook does. - - - ---> \ No newline at end of file +

NearMe Add-On