Title: Undefined function
Last modified: August 22, 2016

---

# Undefined function

 *  [sage144](https://wordpress.org/support/users/sage144/)
 * (@sage144)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-10/)
 * I recently updated my website and got a undefined function error. I am not sure
   how to fix it.
    Here is the code that is the problem.
 *  /* translators: add new file */
    $submenu[‘upload.php’][10] = array( _x(‘Add
   New’, ‘file’), ‘upload_files’, ‘media-new.php’); foreach ( get_taxonomies_for_attachments(‘
   objects’ ) as $tax ) { if ( ! $tax->show_ui || ! $tax->show_in_menu ) continue;
 * The actual line that is giving me the error is:foreach ( get_taxonomies_for_attachments(‘
   objects’ ) as $tax ) {
 * Thanks for any help

Viewing 1 replies (of 1 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [11 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-10/#post-5926520)
 * What is the error? What is the function that isn’t being defined?

Viewing 1 replies (of 1 total)

The topic ‘Undefined function’ is closed to new replies.

## Tags

 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/undefined-function-10/#post-5926520)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
