Ah, I understand. You want to remove the button completely.
You can use this PHP code to hide the button. Is uses the simple_history/user_can_clear_log
filter to disable the “Clear log” button for all users:
<?php
add_filter('simple_history/user_can_clear_log',?'__return_false');
?>
This code uses the?add_filter
?function to modify the simple_history/user_can_clear_log
filter. The __return_false
function is a built-in WordPress function that simply returns?false
. This will effectively disable the “Clear log” button for all users.
You need to add the snippet above to for example your functions.php
file.
Hope that works!