Opened 11 years ago
Closed 11 years ago
#34784 closed feature request (duplicate)
Adding a function for custom scripts
| Reported by: | abiralneupane | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Script Loader | Version: | 4.3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
A new
wp_add_inline_script()function is already being discussed in #14853. Just needs a new patch.