Title: WordPress bloginfo() function.
Last modified: August 19, 2016

---

# WordPress bloginfo() function.

 *  Resolved [Haris Zulfiqar](https://wordpress.org/support/users/isharis/)
 * (@isharis)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-bloginfo-function/)
 * I want to access bloginfo() function in plugin file to get the root URL of wordpress?
   I get the following error when I use bloginfo() function:
 * Fatal error: Call to undefined function bloginfo()
 * What is the solution?

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-bloginfo-function/#post-701342)
 * Try the get_option() function:
 *     ```
       $blog_addr = get_option('home');
       $wp_addr = get_option('siteurl');
       ```
   
 *  Thread Starter [Haris Zulfiqar](https://wordpress.org/support/users/isharis/)
 * (@isharis)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-bloginfo-function/#post-701401)
 * Call to undefined function get_option()
 * :S
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-bloginfo-function/#post-701441)
 * When exactly are you calling these functions in your plugin?

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

The topic ‘WordPress bloginfo() function.’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-bloginfo-function/#post-701441)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
