Thanks, tried wp_update_post
, didn’t work quite as I had hoped. To be a bit more specific about my problem, I’m manually creating a page using a PHP command line script, and I’m trying to have certain privacy settings from the plugin User Access Manager be applied to that page. With just my script, the settings are not properly applied. However, when I go onto the WordPress editor on my site and simply click the “Update Page” button for the page without doing anything else, the settings suddenly activate. I’m sure there’s some function within the plugin source code that would help, but it’s quite an extensive set of files, and I’m just trying to have the page update itself from the PHP script as a bit of a shortcut. When I tried wp_update_post()
in different parts of the script, nothing new happened.
Do you know if any other functions are called when the button is clicked? (Thank you for the response!)