Advertisement
Guest User

Non-MainWP Changes call changes

a guest
Mar 13th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. === old version.
  2.  
  3. table_name( 'wp_actions' )
  4.  
  5. action_id int(11) NOT NULL auto_increment,
  6. wpid int(11) NOT NULL,
  7. object_id varchar(20) NOT NULL,
  8. context varchar(20) NOT NULL,
  9. action varchar(100) NOT NULL,
  10. action_user text NOT NULL DEFAULT "",
  11. created int(11) NOT NULL DEFAULT 0,
  12. meta_data text NOT NULL DEFAULT "",
  13. dismiss tinyint(1) NOT NULL DEFAULT 0,
  14. summary varchar(255) NOT NULL default ""';
  15.  
  16. === current version.
  17.  
  18. table_name( 'wp_logs' )
  19.  
  20. log_id bigint(20) NOT NULL auto_increment,
  21. site_id bigint(20) unsigned NULL,
  22. object_id varchar(20) NOT NULL DEFAULT '',
  23. item text NOT NULL,
  24. user_id int(11) unsigned NOT NULL DEFAULT '0',
  25. action varchar(100) NOT NULL,
  26. context varchar(100) NOT NULL,
  27. connector varchar(100) NOT NULL,
  28. state tinyint(1) unsigned NULL,
  29. created int(11) NOT NULL DEFAULT 0,
  30. duration float(11,4) NOT NULL DEFAULT '0',
  31. dismiss tinyint(1) NOT NULL DEFAULT 0,
  32.  
  33. addition fields:
  34.  
  35. url => site url
  36. log_site_name ==> site name
  37.  
  38. usermeta = array(
  39. 'wp_user_id',
  40. 'display_name',
  41. 'action_user',
  42. 'role',
  43. 'user_role_label',
  44. 'agent',
  45. 'system_user_id',// sometime.
  46. 'system_user_name' // sometime.
  47. );
  48. user_meta_json ==> json format of usermeta
  49. meta_name => meta filed
  50. extra_info ==> may some extra info if exit
  51. view_log_id,
  52.  
  53. API data response output changes in field: 'data' => $data,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement