Dynamically Modify s2member Options

With the s2member plugin, whenever you want new posts protected, you have to manually go into the plugin options and add the post ID to a list of comma separated post IDs. When you save anything at all in the options, the plugin saves it all in a gigantic record in the wp_options table under the option name, ws_plugin__s2member_options. So I figured I would write a function that grabs the post ID and updates that record. It works fine except there is some 'checksum value' that is generated and placed in there that is dependent on the options. So every time a post is saved, the options are updated in the database... but the plugin checks and sees that they've been changed because of this checksum value - and then it reverts every single setting in the configuration to the original defaults. I was told that I could call the function or hook for that, but no luck at all. Anyone familiar with this plugin enough to tell me how to just remove that stupid pointless checksum/check? I say it's stupid and pointless because if someone gains access to my database and changes those options, I think the options are the least of my worries.

Topic s2member functions plugins Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.