gde_show_error
The WordPress Core gde show error function.
Description
gde_show_error( $status );
Parameters (1)
- 0. $status
- The status.
Usage
if ( !function_exists( 'gde_show_error' ) ) { require_once '/functions.php'; } // The status. $status = null; // NOTICE! Understand what this does before running. $result = gde_show_error($status);
Defined (1)
The function is defined in the following location(s).
- /functions.php
- function gde_show_error( $status ) {
- global $gdeoptions;
- $error = "GDE " . __('Error', 'google-document-embedder') . ": " . $status;
- if ( $gdeoptions['error_display'] == "no" ) {
- $code = "\n<!-- $error -->\n";
- } else {
- $code = "\n".'<div class="gde-error">' . $error . "</div>\n";
- }
- return $code;
- }