Automatically change the page password for more than one page
To make this work on multiple posts, your options are either write the ‘where’ clause for the update as a SQL ‘IN’, e.g. using the answer here – this will use the same newly-generated password for every post add a loop and call $wpdb->update individually for each post – this will either make a new … Read more