replace words in my posts and saved new words
-
i need replace words in my posts and saved new words after delete code in my functions
i use this code for replace
function replace_text_wps($text){ $replace = array( // ‘WORD TO REPLACE’ => ‘REPLACE WORD WITH THIS’ 'wp' => '<img href="#"><a href="#">wordpress</a>', ); $text = str_replace(array_keys($replace), $replace, $text); return $text; } add_filter('the_content', 'replace_text_wps'); add_filter('acf/load_value/name=artist', 'replace_text_wps');
this code is ok and replaced my words but if delete this code in my functions new words not saved
i want one time replaced all words and save and delete code
how to that this ?
sorry , i can’t good speaking english
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘replace words in my posts and saved new words’ is closed to new replies.