comments_per_page

comments_per_page

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comments_per_page') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 211
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
         *
         * @param int    $comments_per_page The number of comments to list per page.
         * @param string $comment_status    The comment status name. Default 'All'.
         */
        return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
    }
     
    /**
     * @global string $comment_status
     */
    public function no_items() {
  • /wp-admin/includes/class-wp-screen.php line 1258
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    if ( 'edit_comments_per_page' === $option ) {
        $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
     
        /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */
        $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
    } elseif ( 'categories_per_page' === $option ) {
        /** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */
        $per_page = apply_filters( 'edit_categories_per_page', $per_page );
    } else {
        /** This filter is documented in wp-admin/includes/class-wp-list-table.php */
        $per_page = apply_filters( "{$option}", $per_page );