您应该始终按照以下方式使用wpml函数:(您链接的HowTo实际上表明:-)
if( function_exists(\'icl_register_string\') ) { icl_register_string( \'Match Previous Order\' , \'match_order\', \'Do you want these items to match a previous order from Direct Linen? If yes, use "Additional Notes" to explain.\' ); }
这将确保在Wordpress安装中不存在WPML,或者在代码运行之前WPML未完全加载(插件激活时)时,不会出现任何错误。