Title: Custom_Image_Header::remove_header_image
Published: April 25, 2014
Last modified: April 28, 2025

---

# Custom_Image_Header::remove_header_image()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#wp--skip-link--target)

Removes a header image.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#source)󠁿

    ```php
    final public function remove_header_image() {
    	$this->set_header_image( 'remove-header' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-custom-image-header.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-custom-image-header.php#L1228)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-custom-image-header.php#L1228-L1230)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#related)󠁿

| Uses | Description | 
| [Custom_Image_Header::set_header_image()](https://developer.wordpress.org/reference/classes/custom_image_header/set_header_image/)`wp-admin/includes/class-custom-image-header.php` |

Chooses a header image, selected from existing uploaded and default headers, or provides an array of uploaded header data (either new, or from media library).

  |

| Used by | Description | 
| [Custom_Image_Header::reset_header_image()](https://developer.wordpress.org/reference/classes/custom_image_header/reset_header_image/)`wp-admin/includes/class-custom-image-header.php` |

Resets a header image to the default image for the theme.

  | 
| [Custom_Image_Header::take_action()](https://developer.wordpress.org/reference/classes/custom_image_header/take_action/)`wp-admin/includes/class-custom-image-header.php` |

Executes custom header modification.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/custom_image_header/remove_header_image/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fcustom_image_header%2Fremove_header_image%2F)
before being able to contribute a note or feedback.