Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
buddypress的wordpress数据_Wordpress_Buddypress - Fatal编程技术网

buddypress的wordpress数据

buddypress的wordpress数据,wordpress,buddypress,Wordpress,Buddypress,我在名为“wp\u bp\u xprofile\u data”的表中有buddypress的数据,该表的字段如下 a:2:{i:0;s:10:“我的项目”;i:1;s:5:“其他”} 这是什么样的数据?当然不是JSON…而是PHP序列化数据。您可以使用unserialize() 重新序列化配置文件数据: $value = bp_get_profile_field_data(‘field=some_serialized_field’); $value = bp_unserialize_profil

我在名为“
wp\u bp\u xprofile\u data
”的表中有buddypress的数据,该表的字段如下

a:2:{i:0;s:10:“我的项目”;i:1;s:5:“其他”}


这是什么样的数据?当然不是JSON…

而是PHP序列化数据。您可以使用
unserialize()


重新序列化配置文件数据:

$value = bp_get_profile_field_data(‘field=some_serialized_field’);
$value = bp_unserialize_profile_field($value);

谢谢你,詹姆斯。我试图接受您的答案,但得到“您可以在2分钟内接受答案(单击此框可退出)”…:(也许你现在应该再试一次;)