Opened 2 years ago
Last modified 12 months ago
#56993 new feature request
I want to put a filter in the wp_enqueue_block_support_styles function.
Reported by: | nendeb55 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.1 |
Component: | Script Loader | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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/
Change History (2)
Note: See
TracTickets for help on using
tickets.
For example.