exit; or store in $_SESSION. then on each page load check is_admin() and if your session var is set, then if so print the message, and remove the message from $_SESSION.
Related Posts:
- Organizing Code in your WordPress Theme's functions.php File?
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Creating my own Admin Forms in a WordPress CMS?
- How to remove items from +New admin menu?
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- Can initial focus be set to search field in WordPress Media Library?
- wp-admin – save options without refreshing?
- How do you modify CSS files via admin panel?
- How to prevent parent admin page from appearring as a child admin page
- Change WP-Login or WP-Admin
- SSL Partially breaking admin panel and elementor
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Form validation in WordPress Admin Panel
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to hide wordpress default description box?
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Allow administrators to pick post author on custom post type edit screen
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- How to make the front-end RTL without changing the admin panel language?
- admin_post action not usable if admin access denied to user
- Add column to pages table
- Display checked in checkbox theme admin page when reloaded
- What are the requirements to make the admin toolbar show up on the front end
- Remove bulk option row
- How to use the built in tooltip for form validation error messages in WP admin plugin?
- Register page in admin area
- How to replace “Password Protected” text with icon in Admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- What is the correct way to get only display plugin for Administrator Only
- Admin top level menu, pointing to an external url
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- External HTTP API calls slowing down WordPress admin [closed]
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- Uncaught SyntaxError: Unexpected Token Illegal
- Newly created user role not displaying on users screen
- WordPress Admin extremely slow when other admin logged in
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Accessing wordpress tool in local MAMP Site
- Form input values are empty after submit
- Get current URL in Form action
- How to remove Google fonts from wp-admin (Roboto) added by core
- Trying to login to my site redirects me to the first page
- CSRF attack to create USER
- How to display status messages in admin panel
- Admin Login Checks
- Failed to load resource: the server responded with a status of 431 ()
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Admin Login page not working at all
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- Override WordPress Core File?
- How to make the Panel // WP-Admin lighter via Mobile
- How can we make managing lots of pages in WordPress Admin better?
- Can an admin check passwords of registered users?
- Add “external” link to admin menu in the backend
- wp-admin pages return ERR_EMPTY_RESPONSE
- Unwanted redirect in admin area
- How to move wp-admin login page to another location? [closed]
- Can’t access dashboard, connection times out (other pages work fine)
- Getting post meta data, while editing a post in wp-admin panel [closed]
- Share Tags Between Custom Posts in Admin
- Filter dropdown in users.php “delete user” bulk edit screen
- WordPress notification reports
- Page update through theme editor caused wp admin to break
- post-new.php?post_type=product is not loading properly
- How to use underscore.js in WordPress Admin
- How can I open up my administrative panel to everyone?
- Site Crashes When Updating to WordPress (Version 3.6)
- Create new user from phpMyAdmin
- how to stop wordpress admin menu from scrolling with page
- How to have WP admin in English while public website is in another language?
- Remove “Filter” Button on All Posts in wp-admin
- How can I fix, Sorry, you are not allowed to access this page. I have tried the usual
- only last option from theme options is being saved to the DB
- POST 429 Error when trying to place more than 20 images into post at once
- wp-login.php entering password nothing happens
- Cached php? Updates are rendering only if logged as admin
- Ajax the create and edit post form into lightbox and get results
- Symlinking WordPress WP-ADMIN and WP-INCLUDES
- Is it possible to load an admin page inside a thickbox?
- Why would running an admin check throw a 500 error? I’m calling is_super_admin();
- Admin Scripts enqueue codes seems ok but not working
- theme injecting css into wp-admin
- Redirection to external site on admin
- Only Admin receives email
- Admin utility classes?