过滤可用端点数组。
原型
apply_filters( 'rest_endpoints', array $endpoints )
参数
$endpoints
(array)
可用的端点。一组匹配的正则表达式模式,每个模式映射到端点的回调数组。这些格式为’/ path / regex’=> array($ callback,$ bitmask)或`’/ path / regex’=> array(array($ callback,$ bitmask))。
源文件
路径:wp-includes/rest-api/class-wp-rest-server.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_endpoints/