Title: Allow POST method
Last modified: October 14, 2019

---

# Allow POST method

 *  Resolved [Pierre_02](https://wordpress.org/support/users/pierre_02/)
 * (@pierre_02)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/allow-post-method/)
 * 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 : – [https://site1.domain.tld/](https://site1.domain.tld/)–
   [https://site2.domain.tld/](https://site2.domain.tld/) URLs of static websites
   are : – [https://www.domain1.tld/](https://www.domain1.tld/) – [https://www.domain2.tld/](https://www.domain2.tld/)
   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.
 * Pierre.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [George J](https://wordpress.org/support/users/georgejipa/)
 * (@georgejipa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/allow-post-method/#post-12028302)
 * Hello [@pierre_02](https://wordpress.org/support/users/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);
       ```
   
 * —
    George
    -  This reply was modified 6 years, 7 months ago by [George J](https://wordpress.org/support/users/georgejipa/).
 *  Thread Starter [Pierre_02](https://wordpress.org/support/users/pierre_02/)
 * (@pierre_02)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/allow-post-method/#post-12028413)
 * WOUHOU 😀 !!
 * Thanks a lot George ! Your code works so fine :D!!
    You made my day 😀 !!!
 * Have a great evening 🙂 !!
 * Pierre.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Allow POST method’ is closed to new replies.

 * ![](https://ps.w.org/wp-maintenance-mode/assets/icon-256x256.gif?rev=3027645)
 * [LightStart - Maintenance Mode, Coming Soon and Landing Page Builder](https://wordpress.org/plugins/wp-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-maintenance-mode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pierre_02](https://wordpress.org/support/users/pierre_02/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/allow-post-method/#post-12028413)
 * Status: resolved