function replace_text_wps($text){
$replace = array(
'<h2>Ололо</h2>' => '<h2>Ололо</h2>'.'the_title ();'
);
$text = str_replace(array_keys($replace), $replace, $text);
return $text;
}
Как это правильно прописать ?
function replace_text_wps($text){
$replace = array(
'<h2>Ололо</h2>' => '<h2>Ололо</h2>'.'the_title ();'
);
$text = str_replace(array_keys($replace), $replace, $text);
return $text;
}