Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// ...<snip>...
<span class="milestone"><# wp.hooks.applyFilters('milestonerevs.metadata', data) #></span>
// ...<snip>...
add_action( 'admin_footer-revision.php', 'wpse151630_test' );
function wpse151630_test() {
?>
<script>
(function($) {
wp.hooks.addFilter('milestonerevs.metadata', function( data ) {
return 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.