Generally, I’d say that the preferred “right way” to do this is from last to first since using a core WP function should enable more backwards compatibility (theoretically, at least). The only other decision to make then is whether you want to allow WordPress and plugins to also modify the post content. If that’s the case, definitely use the 2nd or 3rd options.Generally, I’d say that the preferred “right way” to do this is from last to first since using a core WP function should enable more backwards compatibility (theoretically, at least). The only other decision to make then is whether you want to allow WordPress and plugins to also modify the post content. If that’s the case, definitely use the 2nd or 3rd options.