Support » Requests and Feedback » get_terms documentation mistake

  • Resolved chris-man6


    Just a quick note for whoever maintains the documenation…

    On the page:

    Under ‘default usage’, one of the arguments in the $args array is ‘name’

    However, if you try to use the ‘get_terms’ function and pass in something like:
    get_terms(‘taxonomy’, array( ‘name’ => ‘myname’ ))

    The ‘name’ argument is not actually used or recognised.

    I’ve checked the code in wp-includes/taxonomy.php and can see that ‘name’ is not a valid argument.

    Just FYI, as I was trying to work this out for quite a while!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_terms documentation mistake’ is closed to new replies.