{"id":1526,"date":"2014-03-03T08:58:13","date_gmt":"2014-03-03T07:58:13","guid":{"rendered":"http:\/\/www.tranches-de-marketing.com\/veille\/un-mode-maintenance-en-3-4-lignes-de-code\/"},"modified":"2014-03-03T08:58:13","modified_gmt":"2014-03-03T07:58:13","slug":"un-mode-maintenance-en-3-4-lignes-de-code","status":"publish","type":"post","link":"http:\/\/www.tranches-de-marketing.com\/veille\/un-mode-maintenance-en-3-4-lignes-de-code\/","title":{"rendered":"Un mode maintenance en  3-4 lignes de code"},"content":{"rendered":"<p><a rel=\"nofollow\" href=\"http:\/\/www.tweetpress.fr\/codewp\/mode-maintenance\/\">Un mode maintenance en  3-4 lignes de code<\/a><\/p>\n<p>J&#8217;en ai eu marre d&#8217;installer des plugins un peu lourds pour faire de la maintenance. Les solutions \u00e0 base d&#8217;htaccess ou de header PHP m&#8217;apparaissaient \u00a0alambiqu\u00e9es. Alors j&#8217;ai cr\u00e9\u00e9 le mien de mani\u00e8re tr\u00e8s simple. Le code Voici un code qui s&#8217;appuie le hook template_redirect cher \u00e0 l&#8217;ami Marco : Les explications Par d\u00e9faut wp_redirect() [&#8230;]<\/p>\n<p>Ce billet <a rel=\"nofollow\" href=\"http:\/\/www.tweetpress.fr\/codewp\/mode-maintenance\/\">Un mode maintenance en  3-4 lignes de code<\/a> a \u00e9t\u00e9 publi\u00e9 la premi\u00e8re fois sur <a rel=\"nofollow\" href=\"http:\/\/www.tweetpress.fr\">TweetPress.fr &#8211; #code is a #verb<\/a>.<\/p>\n<p>Source: <a href=\"http:\/\/www.tweetpress.fr\/codewp\/mode-maintenance\/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mode-maintenance\" rel=\"dofollow\">Un mode maintenance en  3-4 lignes de code<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un mode maintenance en 3-4 lignes de code J&#8217;en ai eu marre d&#8217;installer des plugins un peu lourds pour faire de la maintenance. Les solutions \u00e0 base d&#8217;htaccess ou de header PHP m&#8217;apparaissaient \u00a0alambiqu\u00e9es. Alors j&#8217;ai cr\u00e9\u00e9 le mien de mani\u00e8re tr\u00e8s simple. Le code Voici un code qui s&#8217;appuie [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/posts\/1526"}],"collection":[{"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/comments?post=1526"}],"version-history":[{"count":0,"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/posts\/1526\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/media?parent=1526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/categories?post=1526"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tranches-de-marketing.com\/veille\/wp-json\/wp\/v2\/tags?post=1526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}