嘿,我正在尝试在 wordpress 主题中添加一个自定义选项,该选项允许用户在展示中上传自己的图像,但我在 custom.php 文件中遇到语法错误。任何人都可以帮助我以正确的方式写这个吗?谢谢!
解析错误:语法错误,第 13 行 /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/themes/wpbootstrap/inc/customizer.php 中的意外 '=>' (T_DOUBLE_ARROW)
$wp_customize->add_setting('showcase_image', array(
'default' => get_bloginfo('template_directory').'/img/showcase.jpg', 'wpbootstrap'),
line 13 'type' => 'theme_mod'
));