Support » Plugin: Code Snippets » is this usage valid

  • Resolved auludag

    (@auludag)


    hi there,

    when we add JS via Code Snippets we add script under
    ‘add_action( ‘wp_head’, function () { ?>’
    .

    Would it work if i change wp_head -> to wp_footer if I wanted that script to be called at footer?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Absolutely it would. That’s exactly what I would recommend if you wanted to print scripts out just before the closing body tag instead of in the head section.

    auludag

    (@auludag)

    Cool. Thanks @bungeshea, for fast reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is this usage valid’ is closed to new replies.