Title: i.liman's Replies | WordPress.org

---

# i.liman

  [  ](https://wordpress.org/support/users/iliman/)

 *   [Profile](https://wordpress.org/support/users/iliman/)
 *   [Topics Started](https://wordpress.org/support/users/iliman/topics/)
 *   [Replies Created](https://wordpress.org/support/users/iliman/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/iliman/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/iliman/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/iliman/engagements/)
 *   [Favorites](https://wordpress.org/support/users/iliman/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Login] How to remove Meta name generator](https://wordpress.org/support/topic/how-to-remove-meta-name-generator/)
 *  [i.liman](https://wordpress.org/support/users/iliman/)
 * (@iliman)
 * [11 years ago](https://wordpress.org/support/topic/how-to-remove-meta-name-generator/#post-5977747)
 * Hi, apkajanu!
 * Try to place this code into functions.php:
 *     ```
       //remove trash from source
       add_action('get_header', 'start_ob');
       add_action('wp_head', 'end_ob', 999);
   
       function start_ob() {
       	ob_start('remove_trash');
       }
       function end_ob() {
       	ob_end_flush();
       }
   
       function remove_trash($output) {
   
       	if (defined('CUSTOM_LOGIN_VERSION')) {
       		$target = '<meta name="generator" content="Custom Login v' . CUSTOM_LOGIN_VERSION . '" />';
   
       		$output = str_ireplace($target, '', $output);
       		$output = trim($output);
       		$output = preg_replace('/^[ \t]*[\r\n]+/m', '', $output);
       	}
   
       	return $output;
       }
       ```
   

Viewing 1 replies (of 1 total)