Filter
rpress_sysinfo_after_wordpress_mu_plugins
On this page
Filters the system information text after the must-use plugins section.
Runs while the system information report on the Tools Diagnostics tab is generated, immediately after the must-use plugins section has been appended. The value is the plain text report built so far, so callbacks must return the original string with any extra lines appended. The filter only runs when must-use plugins are installed. The same report is shown in the text area and offered as a downloadable file.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$return | string | The system information text built so far. |
Return value#
string. The system information text, with any additions appended.
Example#
function my_sysinfo_wordpress_mu_plugins( $return ) {
$return .= "\n-- My Plugin\n\n";
$return .= 'Version: ' . '1.0.0' . "\n";
return $return;
}
add_filter( 'rpress_sysinfo_after_wordpress_mu_plugins', 'my_sysinfo_wordpress_mu_plugins' );
Source#
Applied in:
includes/admin/tools.php(line 1768), inrpress_tools_sysinfo_get()
See also#
Was this page helpful?
