restrictcontentpro/restrict-content

Upgrade routine to change meta keys to match RCP

Closed this issue · 1 comments

Current key is rcUserLevel. The one RCP uses is rcp_user_level. If we use the same keys then the upgrade experience will be seamless and old posts will still be restricted to the correct role.

  • Store version number.
  • Upgrade routine to update data.
  • Filter on get_post_meta() for backwards compatibility.

PR: #21. Tested this on a site with 11k records and it worked well.