{"id":347,"date":"2024-06-13T17:03:34","date_gmt":"2024-06-13T17:03:34","guid":{"rendered":"https:\/\/wappoblog.lndo.site\/?post_type=docs_wappo&p=347"},"modified":"2024-06-13T17:03:34","modified_gmt":"2024-06-13T17:03:34","slug":"ics-import-custom-domain","status":"publish","type":"docs_wappo","link":"http:\/\/wappoblog.lndo.site\/docs\/ics-import-custom-domain\/","title":{"rendered":"Ics import from Custom External domain"},"content":{"rendered":"\n

By default you cannot import a .ics calendar from an external domain into your Wappointment Calendar.<\/p>\n\n\n\n

It was considered unsafe by the WordPress’ team.<\/p>\n\n\n\n

SO now when you try to setup our plugin with an external calendar you’ll get an error as follow:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

From now on whenever you want to use an .ics file hosted somewhere else than a common provider. Step – 1 <\/strong>You’ll need to install this plugin here<\/a> on your site and modify it so that the domain where your .ics file is hosted is cleared.<\/p>\n\n\n\n

Step – 2 <\/strong>Once you’ve installed the plugin you’ll need to edit the index.php<\/strong> file of that plugin from the plugin File editor in Plugins > Plugin File Editor<\/strong><\/p>\n\n\n\n

Here it’s simple you just need to add your domain to the list available:<\/p>\n\n\n\n

function wappointment_add_external_domains( $external_domains ) {\n    return array_merge($external_domains,[\n        'mydomain.com', \/\/ replace with your own domain\n        'mydomain2.com', \/\/ replace with your own domain\n    ]);\n}\n\nadd_filter('wappointment_allow_external_domains', 'wappointment_add_external_domains');<\/code><\/pre>\n\n\n\n

Step – 3 <\/strong>Let’s say I want to clear our domain wappointment.com<\/strong> the file will look like this after edition<\/p>\n\n\n\n

function wappointment_add_external_domains( $external_domains ) {\n    return array_merge($external_domains,[\n        'wappointment.com', \/\/ replace with your own domain\n    ]);\n}\n\nadd_filter('wappointment_allow_external_domains', 'wappointment_add_external_domains');<\/code><\/pre>\n\n\n\n

<\/p>\n","protected":false},"template":"","tags":[],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Ben","author_link":"http:\/\/wappoblog.lndo.site\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"By default you cannot import a .ics calendar from an external domain into your Wappointment Calendar. It was considered unsafe by the WordPress’ team. SO now when you try to setup our plugin with an external calendar you’ll get an error as follow: From now on whenever you want to use an .ics file hosted…","_links":{"self":[{"href":"http:\/\/wappoblog.lndo.site\/wp-json\/wp\/v2\/docs_wappo\/347"}],"collection":[{"href":"http:\/\/wappoblog.lndo.site\/wp-json\/wp\/v2\/docs_wappo"}],"about":[{"href":"http:\/\/wappoblog.lndo.site\/wp-json\/wp\/v2\/types\/docs_wappo"}],"wp:attachment":[{"href":"http:\/\/wappoblog.lndo.site\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wappoblog.lndo.site\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}