Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
get_cause example
private
function
send_recovery_mode_email
(
$rate_limit
,
$error
,
$extension
)
{
$url
=
$this
->link_service->
generate_url
(
)
;
$blogname
=
wp_specialchars_decode
(
get_option
(
'blogname'
)
, ENT_QUOTES
)
;
$switched_locale
=
switch_to_locale
(
get_locale
(
)
)
;
if
(
$extension
)
{
$cause
=
$this
->
get_cause
(
$extension
)
;
$details
=
wp_strip_all_tags
(
wp_get_extension_error_description
(
$error
)
)
;
if
(
$details
)
{
$header
=
__
(
'Error Details'
)
;
$details
= "\n\n" .
$header
. "\n" .
str_pad
(
'',
strlen
(
$header
)
, '='
)
. "\n" .
$details
;
}
}
else
{
$cause
= '';
$details
= '';
}