I added this to the Functions Child Theme as stated here: https://archived.seventhqueen.com/forums/topic/extra-membership-restrictions-how-to
And I get these errors in many places:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_my_custom_restrict’ not found or invalid function name in /home/content/81/10160481/html/wp-includes/plugin.php on line 429
Warning: Cannot modify header information – headers already sent by (output started at /home/content/81/10160481/html/wp-includes/plugin.php:429) in /home/content/81/10160481/html/wp-includes/pluggable.php on line 896
Did I do something wrong or is there another fix?