为什么get_terms() 是否按要求返回最多10个结果?我很困惑。
$args = array(
\'taxonomy\' => \'video_tag\',
\'parent\' => 0,
\'number\' => 10
);
error_log("JPH get_terms args: " . print_r($args,true));
$children = get_terms( $args );
error_log("JPH taxonomy: " . count( $children) . " total");
日志中的结果输出为JPH get\\u terms参数:数组\\n(\\n[父]=>0\\n[数字]=>10\\n[分类]=>视频\\u标记\\n)\\n JPH分类:总计24806
我正在使用PHP 7.1和WordPress 4.8.2