process(). */ public function callback( $key, $val, $line, $group ) { $this->posts_per_page = (int) $this->posts_per_page; if ( '-1' === $val ) { return 'Disabling pagination is not advised, avoid setting `%s` to `%s`'; } if ( $val > $this->posts_per_page ) { return 'Detected high pagination limit, `%s` is set to `%s`'; } return false; } }