Support » Plugin: WP Maintenance Mode » Allow POST method

  • Resolved Pierre_02


    Hi George.

    I do my best to be understandable :).

    So, here’s my problem :
    I use the plugin “Simply Static” to generate static websites from a WP multisite installation.
    URLs of dynamic websites are :
    URLs of static websites are :
    In each static website, URLs in the form are not touched. So they link to the dynamic websites. But by doing that all the form are posted to the websites “protected” by your plugin so when a user submit a form the datas are blocked with a 503 error :(.

    So is there’s a way to permit POST datas to go through WP Maintenance and BTW allow datas to be posted?

    TIA for your precious help.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author George J


    Hello @pierre_02,

    You can use the wpmm_is_excluded filter to exclude the $_POST requests.

    Try this snippet:

     * Exclude $_POST requests
     * @param boolean $is_excluded
     * @return boolean
    function wpmm_exclude_post_requests($is_excluded) {
        if(empty($_POST)) {
            return $is_excluded;
        return true;
    add_filter('wpmm_is_excluded', 'wpmm_exclude_post_requests', 10, 1);


    • This reply was modified 3 months ago by George J.


    WOUHOU 😀 !!

    Thanks a lot George ! Your code works so fine :D!!
    You made my day 😀 !!!

    Have a great evening 🙂 !!


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.