Created
June 25, 2014 13:51
-
-
Save jjeaton/ed4d22245943c2eaa4fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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