comments_per_page

comments_per_page

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comments_per_page') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 211
    		 *
    		 * @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
    		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 );