you could test for the absence of an error and then display a success message
if(!is_wp_error( $thing )) echo "yay!!";
Related Posts:
- why don’t I get error messages in admin when developing?
- Creating a table in the admin-style?
- body_class hook for admin pages
- No Error Log File, no debug info
- How should one implement add_settings_error on custom menu pages?
- Change admin language based on user (in single-site)
- What is the real intention for admin-post.php?
- Admin config screen without menu
- Prevent notice and warnings in error_reporting?
- Make Categories and Tags required in admin
- How to log plugin errors to plugin error_log file
- Catch own Exceptions
- How to add HTML / Form to an Admin Bar Menu
- Throw 403 in a plugin [duplicate]
- Error with Custom Admin Screen in iframe Thickbox
- Settings API – Undefined Index when unchecking checkbox
- JS / JQuery form validation in backend admin menus
- How to put placeholder text in the main post input area?
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- Is it possible to modify the media library admin screen?
- What does $_registered_pages do?
- How can I display an error message after post has been saved?
- Execution limit and Memory limit errors even i changed to 1024M and 600(cache.php,load.php)?
- Get user id for delete and update selected user
- Add tab to profile.php wordpress plugin development
- WordPress Ajax callback function from plugin – OOP
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Including a JS source with an admin page
- WordPress not working on localhost
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- Two functions utilizing registration_errors filter
- maintaing consistent layout wordpress dashboard
- How can I gracefully escape an error condition?
- Add column and post filter for a custom post type field on the edit.php page
- Is there no admin ui guide for 4.x?
- Correct check for any admin page with editor
- Adding (blog-specific) links to “My Sites” admin page
- Change the look and feel of admin pages
- Admin Plugin POST to another file within the plugin
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- Add a page in admin without adding menu item
- Including comments meta box on a plugin page
- How to Move the Comments Bubble to the Right Side of the Toolbar
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- Use ‘get’ form action within a WordPress plugin admin page
- WordPress debug messages not displaying
- Does is_admin() really provide a plugin performance improvement?
- Custom Post Type Object – Undefined Variables
- Reporting errors in a shortcode plugin
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Best practice for plugin: always detect admin-ajax call?
- What might be the reason of Couldn’t fetch mysqli_result on another domain?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Plugin can’t be activated [closed]
- How do I debug an error that a plugin is causing?
- Proper way to create an administration page without adding it to the menu
- using admin functions on frontend
- Need Help Determining Where Header Error is Happening
- “Rendering of admin template [path to template] failed”
- Is there any way to pass messages from a script to a redirect target in a hidden fashion?
- Import images remotly run through timeout error
- Error code when migrate
- WPGut – Updating failed and shortcode?
- GET request return value as error instead of success
- Google Web Core Vitals – management, how to in wordpress and advice
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- WP_Fatal_Error_Handler OR WP_Error OR try/catch
- Custom Plugin activation error in Multisite
- How to create plugin settings page for each admin user?
- Warning: Illegal string offset – on homepage
- Not able to Update database while creating a custom module
- How to return a blank page
- Adding admin for specific users
- How do I control the list of Pages an author can see?
- What happens when you create/edit a menu
- Plugin error on activation – breaks page encoding and prints the code of plugin php files
- Getting error of unexpected output during activation
- loop and in admin header problem
- modify buddpress adminbar only in admin pages
- Trying to build a plugin – Cannot modify header information
- Is there any way to test if a function running only on plugin update is successfully running?
- Sharing a common set of image files for media library, across all sites within multisite
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- How to create database table, add data, update and delete using wpdb via plugins?
- Extending theme PHP class in plugin
- Any ideas to trigger some code after plugin update?
- How to test plugin update through WordPress plugin updater without tagging new release in the repo
- Bad Request in AJAX
- Remove sidebar on single page using plugin API
- creating a plug in that would tap into save/update action of posts [closed]
- .htaccess with WordPress – create my own pretty url with parameters (above WordPress settings)
- Generating a password-protected front-end page via a plugin
- Uncaught ReferenceError: kpoejy is not defined
- How to create a simple plugin which show/hide an html code in wordpress?
- Translation of plugin Upload button
- Create wordpress dashboard metabox which spans all columns
- add_filter adds output in the head
- How can i add insertion point between inner blocks in my custom block like core blocks
- Programmatically creating posts based on external JSON feed (asynchronously)