Opened 5 years ago
Closed 5 years ago
#34784 closed feature request (duplicate)
Adding a function for custom scripts
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.3.1 |
Component: | Script Loader | Keywords: | |
Focuses: | Cc: |
Description
Hi,
I noticed that there is no function to add internal scripts in WordPress.
There is a function wp_add_inline_style() for stylesheet but not for script.
Maybe adding wp_add_inline_script() will be nice.
Thanks
Change History (1)
Note: See
TracTickets for help on using
tickets.
A new
wp_add_inline_script()
function is already being discussed in #14853. Just needs a new patch.