{"id":1313,"date":"2017-10-12T14:29:25","date_gmt":"2017-10-13T00:29:25","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=1313"},"modified":"2017-10-12T14:29:25","modified_gmt":"2017-10-13T00:29:25","slug":"wp-cron-with-basic-authentication","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/wp-cron-with-basic-authentication\/","title":{"rendered":"WP Cron with Basic Authentication"},"content":{"rendered":"
WordPress’ cron doesn’t work when a site has basic authentication.\u00a0 You basically would get a 401 error.<\/p>\n
<\/p>\n
Thanks to Nick Ohrn (in 2014) this problem is solved with a simple mu-plugin.\u00a0 You just need to set the username and password in a constant in wp-config and add some code to the mu-plugins directory.\u00a0 Here is his quick tip<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[2],"tags":[64],"yoast_head":"\n