Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
437 B
4
Indexable
Never
function callback($buffer) {
	$matches = array(
		'hbspt.forms.create',
	);

		foreach ( $matches as $match ) {
			if ( strpos( $buffer, $match ) !== false ) {
			    $result = preg_grep("/hbspt\s*([\s\S]*?);/", $matches);
				$before = 'before';
				$after = 'after';
				$final = $before = $after;
				$regexes = '/hbspt\s*([\s\S]*?);/';
				
				
				return preg_replace( $regexes, $final, $buffer );
				
			}
		}

	return $buffer;
}