[wp-trac] [WordPress Trac] #56180: get_header_image(): may consider adding filter in 'get_header_image()'
WordPress Trac
noreply at wordpress.org
Wed Jul 20 20:55:59 UTC 2022
#56180: get_header_image(): may consider adding filter in 'get_header_image()'
-------------------------------------------------+-------------------------
Reporter: hztyfoon | Owner: audrasjb
Type: feature request | Status: reviewing
Priority: normal | Milestone: 6.1
Component: Themes | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info commit | administration
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* keywords: has-patch has-unit-tests has-testing-info needs-testing =>
has-patch has-unit-tests has-testing-info commit
Comment:
Tested using the following snippet, works fine:
{{{
add_filter( 'get_header_image', function() {
return 'https://example.com/image.jpg'; // Replace this with the
image of your choice.
} );
}}}
Adding `needs-dev-note` keyword.
Marking for commit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56180#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list