Title: preg_replace   the_author()
Last modified: August 20, 2016

---

# preg_replace the_author()

 *  [wujek](https://wordpress.org/support/users/wujek/)
 * (@wujek)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-the_author/)
 * Hello.
    I want to colour display names with preg_replace(), but:
 * `str_replace ($person, $colour, the_author());`
 * doesn’t work!
 * How to solve it?

Viewing 1 replies (of 1 total)

 *  Thread Starter [wujek](https://wordpress.org/support/users/wujek/)
 * (@wujek)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-the_author/#post-3573483)
 * Where can I modify “the_author()” function?

Viewing 1 replies (of 1 total)

The topic ‘preg_replace the_author()’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [wujek](https://wordpress.org/support/users/wujek/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/preg_replace-the_author/#post-3573483)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
