Title: Function call
Last modified: November 30, 2020

---

# Function call

 *  Resolved [lomixx](https://wordpress.org/support/users/lomixx/)
 * (@lomixx)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/function-call-2/)
 * Hello,
 * I created a template to pass a page to my wordpress theme.
    so far ok.
 * Or I block is when I want to call a function when I click on a button on my page.
   
   I don’t know if there is a way for wordpress to do this. My function is in the
   function.php file and when I make a condition if(function_exists (my_function)),
   I put a var_dump with a little message, my function exists.
 * thanks

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/function-call-2/#post-13727152)
 * A button on a page exists in the user’s browser. Your functions.php code exists
   on your server. The button cannot directly call your function, the only possible
   communication is over HTTPS/TCP. Hence you need to use Ajax techniques to have
   the browser ask the server to call your function and send the results back to
   the browser.
    [https://developer.wordpress.org/plugins/javascript/ajax/](https://developer.wordpress.org/plugins/javascript/ajax/)

Viewing 1 replies (of 1 total)

The topic ‘Function call’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/function-call-2/#post-13727152)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
