How to call custom function outside from the admin page?
I've created a function but i have some problems with it...
echo get_option( 'my_function', 'custom_logo' );
I try to use this in my code but it returns me an array not a string.
When i use echo $options['custom_logo']; on my plugin backend admin page the code returns the value as a string.
So how can i call it from my theme for example?
I've created a function but i have some problems with it...
echo get_option( 'my_function', 'custom_logo' );
I try to use this in my code but it returns me an array not a string.
When i use echo $options['custom_logo']; on my plugin backend admin page the code returns the value as a string.
So how can i call it from my theme for example?
No comments:
Post a Comment