Title: get_option() error
Last modified: August 20, 2016

---

# get_option() error

 *  [Tarek](https://wordpress.org/support/users/teka34/)
 * (@teka34)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/get_option-error/)
 * Hi there,
    I’m developing now a new plug-in that block commenting until user 
   pay via PayPal. In the admin panel I used function that collect data from the
   database by get_option(). When I call that function from the admin menu, it works
   fine. But when using that function to collect the same data to use in PayPal 
   API request, it returns an error “undefined function get_option()”.
 * Is there anyone can help?

The topic ‘get_option() error’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tarek](https://wordpress.org/support/users/teka34/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/get_option-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
