How to show admin notice on custom admin action handler?
-
I use hook to handle custom action post request
add_action( 'admin_action_FDRV', 'handle_FDRV_request' ); function handle_FDRV_request() { $name = 'FDRV'; add_action( 'admin_notices', function() use ($name){ echo $name . ' has been upgraded.'; }); }
It doesnt work. Why?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to show admin notice on custom admin action handler?’ is closed to new replies.