gv_calendar_get_feed_error_message()
function gv_calendar_get_feed_error_message( WP_Error $wp_error )
Return the error message for a WP_Error object. If the user can't edit forms, don't show the error message at all.
Since: 2.6
Source: includes/class-calendar-shortcode.php:76
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$wp_error | WP_Error | The error object to display. |
Returns
string— Empty string if the user lacks permission to view the error. Otherwise, the error message.