Title: Call to undefined function
Last modified: August 20, 2016

---

# Call to undefined function

 *  [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * (@tsemmes)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-function-9/)
 * I was trying to make changes to the functions.php file so I could add an additional
   menu to my WordPress template (it only came with one).
    Ok, so I am a little 
   in over my head but I was following a tutorial on this website and thought I 
   could at least try.
 * Anyway I got this error:
    `Fatal error: Call to undefined function dd_action()
   in /home/semmesco/public_html/test/wp-content/themes/burette/functions.php on
   line 46` And now I can’t view the blog or switch the template or anything.
 * The blog can be viewed at [http://semmesco.com/test/](http://semmesco.com/test/).
 * When I had this error message I went to the original template files and copied
   and pasted the functions.php file so I could eliminate any changes I had made.(
   There weren’t that many and I am pretty sure I had deleted them anyway). But 
   I still get the message. Here is the code that seems to be giving a problem:
 * `
    // global scripts add_action('init', 'aq_init_scripts'); add_action('template_redirect','
   aq_print_scripts');
 * Line 46 seems to print to the blank line at the end of the code.
    I have done
   some research on google and tried the different fixes for this there but nothing
   works. Part of the problem might be that the poster assumes some knowledge of
   PHP and that is not the case. So I might be pasting the fix code but in the wrong
   place
 * Any help is appreciated. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [TimDesain](https://wordpress.org/support/users/timdesain/)
 * (@timdesain)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-function-9/#post-2496798)
 * search this phrase in `function.php`
 *     ```
       function dd_action(
       ```
   
 *  Thread Starter [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * (@tsemmes)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-function-9/#post-2496804)
 * What do I do with it when I find it?
 *  Thread Starter [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * (@tsemmes)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-function-9/#post-2496808)
 * Oh, I see it should read “add_action”…. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Call to undefined function’ is closed to new replies.

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/call-to-undefined-function-9/#post-2496808)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
