如何在API中排除特定类别?
对于所有类别,我可以使用以下内容:
https://www.example.com/?rest_route=/wp/v2/posts&per_page=100
如果我需要跨越除10类以外的所有类别,该怎么办我在前面使用JavaScript。
Thanks
如何在API中排除特定类别?
对于所有类别,我可以使用以下内容:
https://www.example.com/?rest_route=/wp/v2/posts&per_page=100
如果我需要跨越除10类以外的所有类别,该怎么办我在前面使用JavaScript。
Thanks
我刚想出来,以防万一这对将来的任何人都有帮助:
有一个选项可用于排除特定类别-categories\\u exclude
因此,新的rest API将是:
https://www.example.com/?rest_route=/wp/v2/posts&per_page=100&categories_exclude=10
$notifications->have\\u posts()返回false,但我确信数据库中很少有这种自定义类型的帖子add_action(\'user_register\',\'jq_after_user_register_hook\', 10, 1); function jq_after_user_register_hook( $user_id ){ global $wpdb; $user_meta = get_userdata($user_id);&#