Title: How call php function
Last modified: August 19, 2016

---

# How call php function

 *  [sin128](https://wordpress.org/support/users/sin128/)
 * (@sin128)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/)
 * Hi i have this poblem:
    I wrote my wordpress plugin and i want call plugin php
   function in page creation. Can anybody help me with this problem? Thanks

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

 *  [alieneila](https://wordpress.org/support/users/alieneila/)
 * (@alieneila)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1466866)
 * If the plugin is activated and you want to call a function in a page, you’ll 
   want to make a shortcode in your plugin.
 * `add_shortcode('my-shortcode', 'myFunction');`
 * and in the edit page put [my-shortcode]
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1466867)
 * [Plugin_API/Action_Reference](http://codex.wordpress.org/Plugin_API/Action_Reference)
   
   [Plugin_API](http://codex.wordpress.org/Plugin_API) [http://adambrown.info/p/wp_hooks](http://adambrown.info/p/wp_hooks)
 *  [alieneila](https://wordpress.org/support/users/alieneila/)
 * (@alieneila)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1466877)
 * Oh, sorry I missed that you wanted it to add function to “page creation”, thought
   you wanted to include a function into a page. The links Michael posted should
   help you.
 *  Thread Starter [sin128](https://wordpress.org/support/users/sin128/)
 * (@sin128)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1466892)
 * Thank MichaelH for reply but i don´t know witch hook to use. If you can please
   write some example how include plugin function in new page witch will be displayed
   on web
 *  Thread Starter [sin128](https://wordpress.org/support/users/sin128/)
 * (@sin128)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1467078)
 * No one know haw solve my problem

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

The topic ‘How call php function’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [sin128](https://wordpress.org/support/users/sin128/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/how-call-php-function/#post-1467078)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
