wp_get_extension_error_description example

echo '</div>';

                    if ( $paused ) {
                        $notice_text = __( 'This plugin failed to load properly and is paused during recovery mode.' );

                        printf( '<p><span class="dashicons dashicons-warning"></span> <strong>%s</strong></p>', $notice_text );

                        $error = wp_get_plugin_error( $plugin_file );

                        if ( false !== $error ) {
                            printf( '<div class="error-display"><p>%s</p></div>', wp_get_extension_error_description( $error ) );
                        }
                    }

                    echo '</td>';
                    break;
                case 'auto-updates':
                    if ( ! $this->show_autoupdates || in_array( $status, array( 'mustuse', 'dropins' ), true ) ) {
                        break;
                    }

                    echo "<td class='column-auto-updates{$extra_classes}'>";

                    

    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 = '';
        }

        /** * Filters the support message sent with the the fatal error protection email. * * @since 5.2.0 * * @param string $message The Message to include in the email. */
Home | Imprint | This part of the site doesn't use cookies.