BirdOPrey5
09-08-2010, 05:27 AM
I saw this posted before but can't find it after extensive searching...
Say I need to remove 1 word 1 time from every post if it's in there when the post is submitted... can someone give me the php code to put in a plugin to do this- mainly I need what piece of data I need to edit, like is it $post[text] ? I know I can use a string function to search for a string and replace it with an empty string effectively removing the word if exists...
Also what hook location would you recommend I use? I want to remove the text before it gets into the database if possible.
Thanks...
Say I need to remove 1 word 1 time from every post if it's in there when the post is submitted... can someone give me the php code to put in a plugin to do this- mainly I need what piece of data I need to edit, like is it $post[text] ? I know I can use a string function to search for a string and replace it with an empty string effectively removing the word if exists...
Also what hook location would you recommend I use? I want to remove the text before it gets into the database if possible.
Thanks...