[wp-trac] [WordPress Trac] #51726: proposal: make specialized header name available inside header.php
WordPress Trac
noreply at wordpress.org
Sat Nov 7 16:40:53 UTC 2020
#51726: proposal: make specialized header name available inside header.php
-------------------------------------------+------------------------------
Reporter: Jules Colle | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 5.5.2
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => needs-patch reporter-feedback
Comment:
Hi there, welcome back to WordPress Trac! Thanks for the ticket.
If I understand correctly, you'd like to use `header.php` instead of
`header-wp-signup.php`, and just pass an additional parameter to it to
make some tweaks?
In that case, you can utilize the `$args` parameter added in [48370] /
#21676.
If you call `get_header()` like this:
{{{
get_header( null, array( '__name' => 'wp-signup' ) );
}}}
you'll have access to `$args['__name']` in `header.php`. Would that
accomplish the task?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51726#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list