Title: How to call function?
Last modified: August 19, 2016

---

# How to call function?

 *  [Tavares](https://wordpress.org/support/users/tavares/)
 * (@tavares)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-call-function/)
 * I need call a function that is within the file
    post.php found inside the folder
   wp-admin \ includes \ post.php.
 * Someone could tell me how can I do that?

Viewing 1 replies (of 1 total)

 *  [flarefox](https://wordpress.org/support/users/flarefox/)
 * (@flarefox)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-call-function/#post-1177904)
 * In your codes use require_once to require a php file, then you can call all functions
   in the file directly.
 * Note: If the function belongs to a class definition, a object must be create 
   to use the function. Maybe you can use a global object such as $post, $comment,
   $wpdb, etc.
 * I am a beginner. Hope it helps.

Viewing 1 replies (of 1 total)

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

 * 1 reply
 * 2 participants
 * Last reply from: [flarefox](https://wordpress.org/support/users/flarefox/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-call-function/#post-1177904)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
