Skip to content

Instantly share code, notes, and snippets.

@scandiumby
Created October 26, 2017 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scandiumby/3ffa362419dd36c518b44e7be8b0735a to your computer and use it in GitHub Desktop.
Save scandiumby/3ffa362419dd36c518b44e7be8b0735a to your computer and use it in GitHub Desktop.
Fix for "Simple SEO by falbar" wordpress plugins (checking to blank metatags).
protected function get_meta_template($params){
$tmp = "\n\r";
$tmp .= '<!-- '.$this->plugin_name.' v '.$this->plugin_version.' -->';
$tmp .= "\n";
if ($params['description']){
$tmp .= '<meta name="description" content="'.$params['description'].'" />';
$tmp .= "\n";
}
if ($params['keywords']){
$tmp .= '<meta name="keywords" content="'.$params['keywords'].'" />';
$tmp .= "\n";
}
if($params['title']){
$tmp .= '<title>'.$params['title'].'</title>';
}
$tmp .= "\n";
$tmp .= '<!--/ '.$this->plugin_name.' -->';
$tmp .= "\n\r";
return $tmp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment