wp_get_plugin_error example

$plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta$plugin_file$plugin_data$status );

                    echo implode( ' | ', $plugin_meta );

                    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;
                    }
Home | Imprint | This part of the site doesn't use cookies.