Skip to content
Docs
Get RestroPress

Filter

rpress_sysinfo_after_session_config

Updated
On this page

Filters the system information text after the session config section.

Runs while the system information report on the Tools Diagnostics tab is generated, immediately after the session config 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. This is the last filter in the report; the closing end-of-report line is added afterwards. The same report is shown in the text area and offered as a downloadable file.

Parameters#

ParameterTypeDescription
$returnstringThe system information text built so far.

Return value#

string. The system information text, with any additions appended.

Example#

function my_sysinfo_session_config( $return ) {
	$return .= "\n-- My Plugin\n\n";
	$return .= 'Version:                  ' . '1.0.0' . "\n";
	return $return;
}
add_filter( 'rpress_sysinfo_after_session_config', 'my_sysinfo_session_config' );

Source#

Applied in:

  • includes/admin/tools.php (line 1841), in rpress_tools_sysinfo_get()

See also#

Was this page helpful?