This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Let's imagine that we need the issues number from an github organization | |
* The issues API results are limited to 100 per page so we need to call this recursively | |
* $offset (int) = the number of pages to skip for the current request | |
*/ | |
function request_issues_number( $offset = 0 ) { | |
$page = 1; | |
if ( ! empty( $offset ) ) { |
NewerOlder