<?php
// grab description,
// note the "get_", we're not echoing the author meta, we're returning it
$user_description = get_the_author_meta('description');
// removing all HTML tags:
echo strip_tags($user_description);
// removing all tags apart from paragraphs:
echo strip_tags($user_description,'<p>');
// removing just anchors (i.e. <a> tags):
echo preg_replace(array('{<a[^>]*>}','{</a>}'),array('',''),$user_description);
// removing all links including their text (i.e. <a href="https://wordpress.stackexchange.com/questions/33568/...">...</a>):
echo preg_replace('{<a[^>]*>(.*?)</a>}','',$user_description);
?>
Reference:
Related Posts:
- Author bio Social Links
- How to automatically remove links from WordPress Biographical Info?
- How to link avatar and nickname to profile
- Link Author’s Website in Author Bio
- author_link filter not work correctly
- Can change twentytwelve_entry_meta “by-author” links?
- How to show author page link
- Open the_author_link() in a new window
- How to check if a user (not current user) is logged in?
- get post author id outside loop
- How to remove the author pages?
- Select subscriber as author of post in admin panel?
- Echo author ID in author.php
- Woocommerce: assign an “author” to a product
- How can HTML be allowed in Author Bio?
- Programatically change post author
- Add a class to links in the visual editor (how to get old dialog back)
- Restrict one post per author
- How to get author’s name by author’s id
- Author page: Comments and Ratings?
- WordPress: How to get the current logged in author page URL?
- Give Author users the right to embed
- Force display name as full name
- How to get post author name by its ID inside a function?
- How can I publish a post with two or more authors?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- If Else Gravatar Author Picture
- Displaying custom post types in author.php
- Open external links in a new window
- Add rewrite endpoint to author page + pagination
- Order the users by the date of their latest post
- What’s a good way to put authors into groups
- Permalink to user profile
- Show Author in custom rss feed
- How to set up sub-categories for author pages?
- What is the difference between user_description and description?
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- Menu Link Redirect Based on Username or User ID
- No authors in change author dropdown
- Show author archive pages for authors with no posts
- More posts from the current author
- List authors of site with link and gravatar
- How we can get the author ID by its Name
- How to hide posts count and posts of other users from edit.php for contributors and authors
- User Published Post Count
- Get current users post URL?
- Custom size for image uploaded to custom field in user profile?
- What capability allows someone to change a page’s/post’s author?
- How to have a static category/author page?
- How to get posts without author?
- Creating distinct pages for author profiles and lists of posts by author
- Navigation link to specific user page
- Allow Content Author to Publish, But Not Edit or Delete
- Just wanted to Pull Author’s Link
- Making WordPress author follow button, need missing ingredient
- How to remove link from an image in a post?
- list author’s posts in author.php
- Conditional Display of Links in Widgets
- What is the canonical way to link to pages?
- Get only the author profile picture image url inside a loop
- Limit author image size
- Get the comment author ID by the comment ID
- Remove all links to a specific website
- Author profile visitors in last 7 days in front end without plugins
- How To Remove The Author(s) From Certain Posts
- Is it possible to set/override default the_author_posts_link to login name?
- add capability to author role to be able to delete attachments
- Remove /author/ from the author profile url
- Google Authorship on a multi-author blog?
- how to flush custom author rewrite rule
- Replace Gravatar with img URL for avatars
- Change author base slug to user role
- Customized title tag for each page in pagination?
- Get the excerpt for a post created by the related author
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- Display Author role in archive or author page
- How to Add Author Editing Capability to Existing Post by Admin
- WordPress Author Page
- Related links – from other sites
- get the username of a user in his author page
- Editing the loop for Author pages
- What is wrong with this code?
- Limit REST API output to current logged in user that is also author of the content
- Display only entire most recent post on author page?
- I only want to Display Author Link in authors bio
- How to add more than one RSS Feed Link for wordpress
- How can I add “posted by ‘author'” to each post?
- Is it possible to get_terms by author?
- no emails for a user account
- Why is the Links Manager visible?
- Author list ‘special’ author first then ‘normal’ author
- hide something in single page if current author has only one post
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- Custom Author Loop
- Output author and description if description is not empty
- get_the_author_meta( $field, 0 ) returns the administrator $field
- WP authors page
- Send transactional email: first user’s post