[wp-trac] [WordPress Trac] #56993: I want to put a filter in the wp_enqueue_block_support_styles function.
WordPress Trac
noreply at wordpress.org
Wed Oct 25 22:43:41 UTC 2023
#56993: I want to put a filter in the wp_enqueue_block_support_styles function.
-----------------------------+------------------------------
Reporter: nendeb55 | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 6.1
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Script Loader
Old description:
> In the wp_enqueue_block_support_styles function, I'm changing the
> $action_hook_name to header or footer for block theme and classic theme.
> In that case, when using php templates in a customized scene with a block
> theme, the CSS may not be output if it is a header.
> (If it is a footer, it will be output.)
>
> So I would like to put a filter in the wp_enqueue_block_support_styles
> function so that $action_hook_name can be changed freely
>
> [https://developer.wordpress.org/reference/functions/wp_enqueue_block_support_styles/]
New description:
In the `wp_enqueue_block_support_styles` function, I'm changing the
`$action_hook_name` to header or footer for block theme and classic theme.
In that case, when using PHP templates in a customized scene with a block
theme, the CSS may not be output if it is a header.
(If it is a footer, it will be output.)
So I would like to put a filter in the `wp_enqueue_block_support_styles`
function so that `$action_hook_name` can be changed freely
[https://developer.wordpress.org/reference/functions/wp_enqueue_block_support_styles/]
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56993#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list