Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// ...<snip>...
<span class="milestone"><# wp.hooks.doAction('milestonerevs.metadata', data) #></span>
// ...<snip>...
add_action( 'admin_footer-revision.php', 'wpse151630_test' );
function wpse151630_test() {
?>
<script>
(function($) {
wp.hooks.addAction('milestonerevs.metadata', function( data ) {
setTimeout(function(){
$('.diff-meta-to .milestone').text(data.id);
}, 100);
});
})(jQuery);
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.