plugin development - User meta query using Wildcard

I have created a custom plugin which writes new user meta data.Each user has an array PER post so the meta_keys look lik

I have created a custom plugin which writes new user meta data.

Each user has an array PER post so the meta_keys look like:

custompostid eg: custom3456, custom4565, custom 3576 etc

Each key holds an array:

custom3456( custom1=>postid custom2=>We are open custom3=>5 custom4=>250 )

I am now trying to create a dashboard to output this info in one place.

EDIT: Logic Walkthrough

  1. Get all user meta data:
    $user = get_current_user_id();
    $data = get_user_meta($user);
  1. For each key in $data starting with "custom" - print values

I need help with number 2.

For clarity, for the current logged in user I am looking to output all of the meta values (in turn) for each meta key named "custom%".

Could I have some guideance please.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745334637a4623047.html

相关推荐

  • plugin development - User meta query using Wildcard

    I have created a custom plugin which writes new user meta data.Each user has an array PER post so the meta_keys look lik

    12小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信