嗨,我正在创建插件默认选项集。我这样写代码。基本上,我想给插件文件夹中的图像路径。是我干的。
function add_scroll_default() {
$tmp = get_option(\'scroll_options\');
if((!is_array($tmp))) {
$arr = array("top_image"=>"echo\'plugins_url( \'/image/top.png\', __FILE__ )\'");
update_option(\'scroll_options\', $arr);
}
}
在检查数据库时,我发现存储的值
echo\'plugins_url( \'/image/top.png\', __FILE__ )\'
但我想把图片的url?谢谢