Skip to main content
Print

Filters

Hera Site Monitor has four filters. Add them in a small plugin or in your theme’s functions.php.

Stop recording PHP warnings

hsmon_capture_warnings decides whether PHP warnings are recorded. Fatal errors are always recorded.

add_filter( 'hsmon_capture_warnings', '__return_false' );

Keep problems for longer

hsmon_retention_days sets how many days a problem is kept after it was last seen. The default is 30, and the lowest value used is 1.

add_filter(
	'hsmon_retention_days',
	function () {
		return 90;
	}
);

Check more pages

hsmon_max_pages sets how many pages the page checks load, the home page included. The default is 10. The cart page of a WooCommerce store is checked on top of them.

add_filter(
	'hsmon_max_pages',
	function () {
		return 20;
	}
);

Check more files on each page

hsmon_max_assets_per_page sets how many stylesheets, and how many scripts, the page checks look at on each page. The default is 30 of each.

add_filter(
	'hsmon_max_assets_per_page',
	function () {
		return 50;
	}
);
Table of Contents