我最近下载了WP Mobile Detect插件,并将其集成到我的主题中(我从主题文件夹中包含的原始Mobile Detect库以及我直接粘贴到其中的匹配WP函数functions.php
).
现在我有了一个社交共享插件,我只想在桌面设备请求该站点时出现。因此,我尝试修改该插件的核心文件,将输出函数包装在WP Mobile Detect的条件中,如:
if ( ! wpmd_is_phone() ) { // output my share buttons }
不幸的是,这将返回Call to undefined function
. 我怎样才能解决这个问题?