kreativan
10/7/2019 - 10:16 AM

SeoMaestro

ProcessWire Seo Maestro Stuff

<?php
/**
 *	Remove
 *	<meta name="generator" content="ProcessWire">
 */ 
$wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) { 
	
	$tags = $event->arguments(0); $group = $event->arguments(1); 
	if ($group === null) { 
		unset($tags['meta_generator']); 
		$event->return = $tags; 
	} 
	
});

//
// Remove the description and canonical URL.
//
$wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) {
  $tags = $event->arguments(0);
  $group = $event->arguments(1);

    if ($group === 'meta') {
    	unset($tags['description']);
    	unset($tags['canonicalUrl']);
    	$event->return = $tags;
    }
});