How to change text string to another string?
-
Hello
This is my plugin code:function my( $content ) { $contenttt = str_replace("abc", "AAAAAAAAA", $content); return $contenttt.'BBBBBBBBB'; } add_filter('the_content', 'my');
But this script only add ‘BBBBBBBBB’ to my post.
What I must to write in this plugin when I will replace string “abc” in all posts??
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘How to change text string to another string?’ is closed to new replies.