How to display a message about updates in the plugin list
Problems with you code: You don’t need to check for $pagenow, that action will only fire in the Plugins screen. The action takes two arguments, present in your callback function, but absent in the action declaration. If you had WP_DEBUG enabled, you’d have seen the notice. An action hook doesn’t return values, you do your … Read more