What is the MOST correct way according to WP ideology to replace user text in the post content?
Example: I want to replace [b] User Text[/b] To <strong> User text</strong> when text rendered in the browser
Do I need filter?
Do I need Short code API? Or it is perfectly fine to use PHP text replacing functions?
A small code sample will be highly appreciated.
I would use the Shortcode API, then your code for the functions.php would look something like this: