I’m using this plugin on my WP installation which works out of the box.
I have a form on the site which inputs domain names. I want to be able to store these domain names into the plugin’s option_value in the wp_options table. How do I do that using PHP?
This is how the plugin stores the value in the database:
test.co.in";s:16:"domain_blacklist";s:0:"";s:18:"bad_domain_message";s:58:"The email address entered is not within an allowed domain.";}
The next question is that once the domains are added to this list via a form then how do I change the value of s:62 which changes every time a domain is added/updated/deleted from the list.
I noticed that 62 in “s:62” is the number of characters in the list (and it counts 2 characters for “return”). How do I change this value using PHP or $wpdb in the form when the domains are inserted into the database?