Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created August 4, 2022 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/94d0c4c565ef32d5a419ba857bd27b5f to your computer and use it in GitHub Desktop.
Save jchristopher/94d0c4c565ef32d5a419ba857bd27b5f to your computer and use it in GitHub Desktop.
Define the OrganizeWP Entry Panel Pane for our comment count Pane Item
<?php
// Define the OrganizeWP Entry Panel Pane for our comment count Pane Item.
// @link https://organizewp.com/docs/entry-panel/
// @link https://gist.github.com/jchristopher/922d0a9396f72a44090c2af64561d71f
class MyOwpPaneEntryComments extends \OrganizeWP\EntryPanelPane {
function init() {
$this->name = 'comments';
$this->label = 'Comments';
$this->show_label = false;
$this->add_item( new MyOwpPaneEntryCommentsCount( $this ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment