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?
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?
Try the get_option() function:
$blog_addr = get_option('home');
$wp_addr = get_option('siteurl');Call to undefined function get_option()
:S
When exactly are you calling these functions in your plugin?
This topic has been closed to new replies.