[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
Fri Nov 4 01:44:31 UTC 2022


#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:  General          |    Version:  6.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list