Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #48333, comment 7


Ignore:
Timestamp:
11/21/2019 07:21:17 PM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48333, comment 7

    v1 v2  
    66
    77Another possible solution would be to set a transient when that message is needed, and remove it when the message is displayed. However that writes to the DB, twice. Still probably a better approach as these DB writes will only happen for logged-in users only when they click "remind me later".
     8
     9Also, may be better to output that message from a function that is added on a hook in the admin? Perhaps `admin_init` or similar.