need some help on thi script
(function($) {
var oldHide = $.fn.popover.Constructor.prototype.hide;
$.fn.popover.Constructor.prototype.hide = function() {
if (this.options.trigger === "hover" && this.tip().is(":hover")) {
var that = this;
// try again after what would have been the delay
setTimeout(function() {
return that.hide.call(that, arguments);
}, that.options.delay.hide);
return;
}
oldHide.call(this, arguments);
};
})(jQuery);
$(document).ready(function () {
$('#example').popover({
html: true,
trigger: 'hover',
container: '#example',
placement: 'bottom',
content: function () {
return '<div class="box">here is some content</div>';
},
animation: false,
delay: {
hide: 1500
}
}).on({
show: function () {
console.log("shown");
},
hide: function () {
console.log("hidden");
}
});
});
this is a bootstrap popover and all I want is to add a php script inside
<div class=box><?php php_here(); ?></div>
because I need to output a wordpress script which is
<?php wp_nav_menu(); ?>
is this possible?