Ok, so I don’t know what I was doing wrong because I tried this before and couldn’t get it to work but I ended up using array_values()
after a couple of people recommended it in another thread.
I finally ended up writing it like this:
get_terms( array_values((get_taxonomies('','names'))) , $args );
Related Posts:
- Check if term object is in array
- How to store the_title() into a variable to reutrn the value, not just echo it
- wp_set_object_terms and arrays
- category not display in word press grammatically
- Need to get specific data from array
- Create an array from an array
- Problems with function on function.php
- get_the_terms – only top level
- Query all posts of a custom taxonomy term
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Populate dropdown with Child Pages based on Parent Page chosen
- foreach loop still echoes array
- Checking array against author id in loop
- Alter required message using comment form api
- meaning of (array)function()
- wp_force_remove_style’ not found
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- How can I access string value in an array?
- Filtering a function’ output for a new continued function
- Limit Taxonomy Output in Conditional Statement
- Isotope Drop Down Categories Filter Function
- How to use array in function to get only value I want
- Warning: in_array() null given in PHP function
- Hierarchical taxonomy list with modificated term links
- Loop over Array and get the distinct ids
- If Array Values Match Another Array’s Values, Then
- Only load certain artists on this page
- How to make sure relative URL works when site is not on root domain?
- Custom functions for string data calculations
- Store custom field’s multiple values in one user meta key
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Display posts using post ID’s in an array
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Display a post based on its metabox selection
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Showing all post from all post type in admin backstage
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- WordPress different custom tag being displayed in on tag list
- Replace block content with an array
- How to set and use global variables? Or why not to use them at all
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Enqueue Javascript Correctly for 3.5
- How to add active class to custom menu using while loop and wp_list_pages
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Add footer.php to WordPress child theme
- WooCommerce – Display variation custom field value [closed]
- Restrict WordPress File Type Uploads by User Type
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to slow down server response
- Click loads template via ajax
- how can i show only the parents in owl-carousel?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Use menu link or onClick to set a variable
- Automatically remove a canceled order in Woocommerce
- WordPress add post format support not working
- How to remove the cufon script from Dzonia Lite theme [closed]
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- getting logged in user info (wp-load.php) from parent directory
- Get term siblings of current child taxonomy
- Add .htm extention to a custom taxonomy
- Custom gallery in wp3.5
- How to use theme function in post/page?
- esc_url( ) won’t use https
- Where is this function’s callback getting its arguments from?
- Use post ID in functions.php file adminside
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- How can I count ACF sub_field with a certain value
- change the default order of posts only for specific categories
- Custom posts password protect
- How to get post category list as select in front-end?
- Order a WP_Query by meta value where the value is an array
- How to use functions [closed]
- Function to call either single post or category
- Updating Metadata with Shortcode
- can’t load .po file in functions.php
- Woocommerce – Exclude variation attribute on specific variation
- How do I add a function to parent theme
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Add Pre-Defined Value to Click Counter in WordPress
- Show data obtained from a function and place it in a shortocode function
- Delete empty title_tags, find a h1 heading and echo it
- WP_Query To Display Product Of Brand On Taxonomy Page
- ajaxurl usage for a custom function
- oembed facebook link?
- Open/closed function [closed]
- Search for images that width and height is more than 500
- Trouble with checked() for array of multiple checkboxes
- add a value to an external link query in searchform
- wordpress ajax return 0
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- site_url() returns with additional backslashes
- Overwriting a Shortcode
- What is this mark for “? function()” [closed]
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- get_body_params() is always empty in POST request
- Warning: Attempt to read property “term_id” on int – Woocommerce
- a problem in class in class-wp-hook.php
- change title of page dynamically