Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Replacing WordPress's comment code to move the comment reply form.
// After WP Core's comment-reply.js is loaded.
(function () {
if ( typeof addComment === 'undefined' ) {
// Source: Jetpack comments module by Automattic.
// See
addComment._myPlugins_moveForm = addComment.moveForm;
addComment.moveForm = function( commId, parentId, respondId, postId ) {
// Disable editor.
addComment._myPlugins_moveForm( commId, parentId, respondId, postId );
// Re-initialize error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment