get_custom_header() doesn’t return the header anymore?

[ad_1]

Hi,

I have been using this plugin for years to allow authors to set header images. In my functions.php, I used        

$custom_header = get_custom_header();

which used to reliably return the attachment ID of the set header. However, this stopped working, and I couldn’t figure out why.

Is there a new function that I can use to fetch the header ID in functions.php? I am using the the_content hook.

Thank you,
Lorenz

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer