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
- Put ACF function output code the_terms
- Get check box values inside array for use in posting form data
- Disclaimer that will show every refresh of the page
- Add Block Before Entry Title Using PHP
- Time Delay a URL Redirect for Specific Page
- Delete images from media library when user deletes an image from ACF Gallery
- how to changes mobile menu toggle breakpoint in WordPress
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Get page permalink in contact form
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- How to display already created menus via php?
- Updating Metadata with Shortcode
- Grabbing Image name From Product Image Gallery
- Reject all malicious URL requests functions.php
- can’t load .po file in functions.php
- How to assign page id with array in page_scheduled_event
- Need help for some PHP code
- “pre_get_posts” orderby custom date field in different format?
- WP-Bakery – Add custom colors to buttons with template colors
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Can/should we delete wordpress cron jobs with no action?
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Adding an “Upgrade Subscription” button to an Elementor page
- Database entry removed on browser refresh, Ajax PHP jQuery
- WordPress User Meta value variable into Google Gauge Chart
- Add a Metabox checkbox to the Page Edit screen of wp-admin , which only certain roles can see and Makes only certain roles able to Edit said page
- Convert a column of a table containing an Array as response in HTML
- Jetengine Forms – Media upload path
- Checkbox doesn’t save inside metabox
- A function to get the content of a page
- How to use Page link field with is_page()
- Using ACF Relationship field to set post type to draft or published status
- How to hide a child category and show his parent category
- Display logged in user name and lastname on page
- Adding wp users ID into a link address from a DIVI modul
- How to Add a cutsom slug to my custom author role
- Execute function only for specific user roles
- How do I edit the terms output args or array data?
- How to send a php var to jQuery Ajax call with two different file
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- Change wordpress’ database data using ajax – how to get current user id?
- Woocommerce My acount page
- Woocommerce – Exclude variation attribute on specific variation
- Dynamically populate parameter in Gravity Forms using PHP
- How do I add a function to parent theme
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Sending simple variable on single page to WP JSON
- Store ajax data in PHP variable
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- How a HTML form can trigger a PHP function?
- Dropdown category field inside repeatable metabox
- How to change basename url for wp-admin?
- Create shortcode for metabox gallery
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Retrieve alt text by referencing the img src
- Create an array with all the links of the years’ archive (of a custom post type)
- Display just one post from a loop of 5 posts?
- Order users by random not working?
- Redux option doensn’t seem when include from functions.php
- How to exclude meta no index pages from wp_list_pages