{"id":18838158,"date":"2026-03-02T12:18:33","date_gmt":"2026-03-02T12:18:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/allowed-dirs\/"},"modified":"2026-03-02T12:18:33","modified_gmt":"2026-03-02T12:18:33","slug":"allowed-dirs","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/allowed-dirs\/","title":{"rendered":"Allowed Dirs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Dear support,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We found another thing that will make this plugin even better.<br \/>The thing is the allowed_dirs. Is it possible to have a hook to add more allowed directories?<br \/>We needed to add &#8216;\/private\/tmp&#8217; to &#8216;plugins\/pattern-builder\/includes\/class-pattern-builder-controller.php&#8217; L:431 to make the Import Images to Theme work.<br \/><br \/>Thanks in advance,<br \/>Patrick Thomassen<br \/>Amazing Full Stack Creatives<\/p>\n","protected":false},"template":"","class_list":["post-18838158","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18838158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18838158\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18838158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}