What’s the better way to add an inline script?

What’s the better way to add an inline script in wordpress, is it by the function wp_add_inline_script, or using the hook wp_footer ?
and why ?

Read more here:: What’s the better way to add an inline script?

Leave a Reply

Your email address will not be published. Required fields are marked *