• We currently do not restrict our content in the first month the items are in the database (about 30-50 articles a month) and then when the next month of articles are put in we are currently manually go through each of the articles and setting a ‘Post Level Restriction’.

    I was hoping to write a script that would query the posts for every post that is older than a given date and does not have a ‘Post Level Restriction’ set and then set it to the proper level.

    What do you think?

    https://wordpress.org/plugins/s2member/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Should be possible.

    Thread Starter tsoheili

    (@tsoheili)

    What I am needing is the database table where this information is kept.

    Thread Starter tsoheili

    (@tsoheili)

    Screenshot of level1 having been selected: http://screencast.com/t/1xGl74mvPN

    I have looked in the wp_postmeta table with the post_id = 19720 as is the post_id for the post in the above screenshot BUT do not see anything that has to do with the ‘Post Level Restriction?’.

    It’s in s2M’s options array ws_plugin__s2member_options in wp_options table, run this SQL and you will find it:

    select * from wp_options where option_value like '%19720%'

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post Level Restriction in the wordpress database’ is closed to new replies.