CMB2 / CMB2

CMB2 is a developer's toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Metabox to edit-comment.php

GregLancaster71 opened this issue · comments

Looked through https://github.com/WebDevStudios/CMB2-Snippet-Library and didn't see a snippet for this. CMB2 says it supports a object_type => array( 'comment', ) but I don't see the functionality built into the code. Is there a way to do this with filters?

Adding the functionality would not be hard. A dozen lines in CMB2_Hookup.php in function admin_hooks() would do it. So I think its safe to assume this was an intentional exclusion?

Short answer is that it was just never added. I'd be happy to take a look at a PR if you're up for one. If it's not super clean, I may leave it as being better suited for an add-on.

Sorry about the multiple notifications guys, I had to change accounts on my local network and re-fork CMB2.