I have a website that I created with MediaWiki but this website is not a community of two or more users and I am the only registered user as this is a personal website where I publish my services and principally the only user that edits it; to ensure this principle I added the following code to the end of
$wgGroupPermissions['*']['createpage'] = false;
My problem is that right now this website still has a link to create a talk page in every web page,
yet there are no talk pages and there shouldn't be any in that website because it's not communal.
Having a link to create an empty talk page per each web page, creates Soft 404 web pages all over the website.
I need a PHP way to remove the link because AFAIK,
display:none or some JS will not actually remove it from DOM.