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
- WordPress custom block error: Content generated by `save` function triples
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Ajax function is not working on WordPress
- Best way to ping for the API changes in the wordpress?
- when i activate my plugin i want to auto create pages with shortcodes
- Auto-complete or auto-suggest from stored data in database
- Best way to distribute templates and code accross multiple wordpress sites?
- Schedule some work in custom plugin
- What is the replacement for rich_edit_exists()?
- How to overwrite iris color pallates from theme to plugin
- Get images / media attached to a page by page ID
- How to submit/upload data to database and in specific folder?
- OOP plugin not working
- About a programming language starts with [closed]
- Adding Custom CSS with PHP
- in_array function Problem
- custom wp_editor does not save the content in plugin settings
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database