Title: Using Hook to Remove Author Meta
Last modified: August 21, 2016

---

# Using Hook to Remove Author Meta

 *  [Brandon Moner](https://wordpress.org/support/users/ctvonline/)
 * (@ctvonline)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-hook-to-remove-author-meta/)
 * I can’t seem to figure out how to remove the “Written by AUTHOR” text via a hook
   in the functions.php file. Can anyone lend a hand with this (NOT with CSS, but
   with hooks only please.)?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [Serene Themes](https://wordpress.org/support/users/rlafranchi/)
 * (@rlafranchi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-hook-to-remove-author-meta/#post-5123910)
 * You can use a childtheme override function, for the author meta, the following
   function will work:
 *     ```
       function childtheme_override_postmeta_authorlink() {
         //custom code
       }
       ```
   
 *  Theme Author [Serene Themes](https://wordpress.org/support/users/rlafranchi/)
 * (@rlafranchi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-hook-to-remove-author-meta/#post-5123911)
 * Here’s the original code for reference:
 *     ```
       function cleanyetibasic_postmeta_authorlink() {
       		global $authordata;
   
       	    $author_prep = '<span class="meta-prep meta-prep-author">' . __('By', 'cleanyetibasic') . ' </span>';
   
       	    if ( cleanyetibasic_is_custom_post_type() && !current_theme_supports( 'cleanyetibasic_support_post_type_author_link' ) ) {
       	    	$author_info  = '<span class="vcard"><span class="fn nickname">';
       	    	$author_info .= get_the_author_meta( 'display_name' ) ;
       	    	$author_info .= '</span></span>';
       	    } else {
       	    	$author_info  = '<span class="author vcard">';
       	    	$author_info .= sprintf('<a class="url fn n" href="%s" title="%s">%s</a>',
       	    							get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
       									/* translators: author name */
       	    							sprintf( esc_attr__( 'View all posts by %s', 'cleanyetibasic' ), get_the_author_meta( 'display_name' ) ),
       	    							get_the_author_meta( 'display_name' ));
       	    	$author_info .= '</span>';
       	    }
   
       	    $author_credit = $author_prep . $author_info ;
   
       	    return apply_filters('cleanyetibasic_postmeta_authorlink', $author_credit);
   
       	}
       ```
   
 *  Thread Starter [Brandon Moner](https://wordpress.org/support/users/ctvonline/)
 * (@ctvonline)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-hook-to-remove-author-meta/#post-5123941)
 * Thanks for that

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using Hook to Remove Author Meta’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/clean-yeti-basic/2.5.1/screenshot.
   png)
 * Clean Yeti Basic
 * [Support Threads](https://wordpress.org/support/theme/clean-yeti-basic/)
 * [Active Topics](https://wordpress.org/support/theme/clean-yeti-basic/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/clean-yeti-basic/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/clean-yeti-basic/reviews/)

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 3 replies
 * 2 participants
 * Last reply from: [Brandon Moner](https://wordpress.org/support/users/ctvonline/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/using-hook-to-remove-author-meta/#post-5123941)
 * Status: not resolved