helpful_debug_fields

This filter allows you to manipulate or override the fields that Helpful puts into the Site Health information.

/**
 * @param array $fields
 * @return array
 */
add_filter('helpful_debug_fields', function (array $fields) {
    $fields['your-field-id'] = [
        'label' => esc_html_x('Some Heading', 'debug field label', 'your-textdomain'),
        'value' => 'Some Content (for example an version number)',
    ];

    return $fields;
});

Was this post helpful?

Top