I do have code that is js script inline together with php script is their possible way to enque it to footer without puting it on .js file
To clear explanition on my question here is my example code
<script>
$(function(){
$('#slides').slides({
preload: <?php echo $option1 ?>,
generateNextPrev: <?php echo $option2 ?>
});
//some other script
});
</script>
Without putting that code in single js, How can I enque it? I see the documentation about enque script usage which only needs 'src'
wp_enqueue_script(
$handle
,$src
,$deps
,$ver
,$in_footer
);
