gleenk
3/2/2017 - 11:03 AM

Sostituzione testi wordpress

Sostituzione testi wordpress

function replace_text_title($text) {
  if(is_page(25032)){
    $text = str_replace('matrimonio gay', 'unione civile', $text);
    //$text = str_replace('look-for-that-string', 'replace-with-that-string', $text);

  return $text;
  }
}
add_filter('the_title', 'replace_text_title');