WordPress.org

Make WordPress Core

Ticket #21344: comments-table-hook-patch.diff

File comments-table-hook-patch.diff, 528 bytes (added by hardy101, 3 years ago)

Allow plugins to do additional filtering of comment list in class-wp-comments-list-table.php

  • wp-admin/includes/class-wp-comments-list-table.php

     
    224224                        ?> 
    225225                        </select> 
    226226<?php 
     227                        do_action( 'restrict_manage_comments' ); //be able to add hooks like class-wp-posts-list-table.php 
    227228                        submit_button( __( 'Filter' ), 'secondary', false, false, array( 'id' => 'post-query-submit' ) ); 
    228229                } 
    229230