Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function osu_author_bio($value, $user_id) {
- $runPHPFunction = false;
- if (isset($_GET['userID'])){
- $runPHPFunction = true;
- }else{
- $userID = get_query_var( 'username' );
- if (!empty($userID))
- $runPHPFunction = true;
- }
- if ($runPHPFunction) //if we are on the userlisting page
- return nl2br($value); // this PHP function should read newlines (n) and output HTML breaks
- else
- return $value;
- }
- add_filter('get_the_author_description', 'osu_author_bio', 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement