Title: Updated deprecated function get_all_category_ids [Has Patch]
Last modified: September 27, 2016

---

# Updated deprecated function get_all_category_ids [Has Patch]

 *  Plugin Author [B.](https://wordpress.org/support/users/bandonrandon/)
 * (@bandonrandon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/updated-deprecated-function-get_all_category_ids-has-patch/)
 * Here’s a quick patch to switch from the deprecated `get_all_category_ids` function
   to the `get_terms()` function added in 4.0. I made the decision to use the 4.5
   syntax but we could also use the 4.0 syntax if backwards compatibility was wanted
   see [get_terms()](https://developer.wordpress.org/reference/functions/get_terms/)
   for more.
 * Patch is here:
    [https://gist.github.com/BandonRandon/66075fcc3471ce104b77fc5fbb13feaf](https://gist.github.com/BandonRandon/66075fcc3471ce104b77fc5fbb13feaf)

Viewing 1 replies (of 1 total)

 *  Plugin Author [B.](https://wordpress.org/support/users/bandonrandon/)
 * (@bandonrandon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/updated-deprecated-function-get_all_category_ids-has-patch/#post-8249848)
 * I’ve committed this patch 🙂

Viewing 1 replies (of 1 total)

The topic ‘Updated deprecated function get_all_category_ids [Has Patch]’ is closed
to new replies.

 * ![](https://ps.w.org/empty-blog/assets/icon-256x256.png?rev=1507951)
 * [Empty Blog](https://wordpress.org/plugins/empty-blog/)
 * [Support Threads](https://wordpress.org/support/plugin/empty-blog/)
 * [Active Topics](https://wordpress.org/support/plugin/empty-blog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/empty-blog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/empty-blog/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [B.](https://wordpress.org/support/users/bandonrandon/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/updated-deprecated-function-get_all_category_ids-has-patch/#post-8249848)
 * Status: not a support question