title: wp_add_inline_script isn't adding anything to my page, can't figure out why
body: <p>I want to add inline script to just a single page, so trying to add in the page template file. However, both placements of the code above or below the footer call results in nothing being outputted in the source.</p>
  
  <p>I can't figure out how this is supposed to work, can anyone help?</p>
  
  <p>** Page Template **</p>
  
  <pre><code>&lt;?php
  get_footer('blank');
  function cardpay_demo_script() {
      wp_add_inline_script(
          'jquery',
          '$(".btn-next").click(function() {
              $(".nav-pills .active").parent().next("li").find("a").removeClass("disabled").trigger("click");
          });'
      );
  }
  add_action('wp_enqueue_scripts', 'cardpay_demo_script');
  </code></pre>
  
  <p>** Footer File **</p>
  
  <pre><code>&lt;?php wp_footer(); ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>