{"id":2417,"date":"2016-06-19T09:36:00","date_gmt":"2016-06-19T09:36:00","guid":{"rendered":"http:\/\/mag.pardis.it\/?p=2417"},"modified":"2016-06-19T11:57:21","modified_gmt":"2016-06-19T11:57:21","slug":"wp-ftp-media-library","status":"publish","type":"post","link":"https:\/\/pardis.it\/mag\/wp-ftp-media-library\/","title":{"rendered":"\u0622\u067e\u0644\u0648\u062f \u0631\u0633\u0627\u0646\u0647 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0631 \u0631\u0648\u06cc ftp \u0633\u0631\u0648\u0631 \u062f\u06cc\u06af\u0631"},"content":{"rendered":"<p style=\"text-align: justify\">\u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0648\u0627\u0644\u0627\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0686\u0637\u0648\u0631\u06cc \u0628\u0627 \u0648\u0631\u062f\u067e\u0631\u0633 \u06a9\u0627\u0631 \u06a9\u0646\u06cc\u0645 \u0648\u0644\u06cc \u0622\u067e\u0644\u0648\u062f \u0642\u0633\u0645\u062a \u0631\u0633\u0627\u0646\u0647 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u062a\u0631\u062c\u06cc\u062d\u0627 \u0633\u0631\u0648\u0647\u0627\u06cc \u0648\u0627\u0631\u0632 \u06cc\u0627 ftp \u0647\u0627 \u0628\u0627\u0634\u0647 \u061f<\/p>\n<p style=\"text-align: justify\">\u06cc\u0647 \u062c\u0633\u062a\u062c\u0648\u06cc \u06a9\u0648\u0686\u06a9 \u0645\u0627 \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0645\u06cc \u0631\u0633\u0627\u0646\u062f \u06a9\u0647\u00a0\u00a0\u0628\u0647 \u0633\u0648\u0631\u0633 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u0631\u0633\u06cc\u062f\u00a0\u06a9\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0648\u0631\u0633 \u0647\u0627\u06cc \u063a\u06cc\u0631 \u0645\u0639\u062a\u0628\u0631 ( \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0638\u0631 \u063a\u06cc\u0631 \u0645\u0639\u062a\u0628\u0631 \u0686\u0648\u0646 \u062f\u0631\u00a0<a href=\"https:\/\/wordpress.org\" rel=\"nofollow noopener\" target=\"_blank\">wordpress<\/a>.org \u062b\u0628\u062a \u0646\u06a9\u0631\u062f\u0647 \u0627\u0633\u062a\u00a0) \u0631\u0633\u06cc\u062f\u06cc\u0645 \u06a9\u0647 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u0631\u00a0github \u0645\u0646\u062a\u0634\u0631 \u06a9\u0631\u062f\u0647 \u0628\u0648\u062f .<\/p>\n<p style=\"text-align: justify\">\u06a9\u0627\u0631 \u0628\u0627 \u0627\u06cc\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u0627\u0635\u0644\u0627 \u06a9\u0627\u0631 \u0633\u062e\u062a\u06cc \u0646\u06cc\u0633\u062a ! \u0627\u0641\u0632\u0648\u0646\u0647 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u0648 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify\">\u062d\u0627\u0644\u0627 \u0628\u0647 \u0642\u0633\u0645\u062a \u0627\u0641\u0632\u0648\u0646\u0647 \u0647\u0627 \/ \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0628\u0631\u0648\u06cc\u062f \u067e\u0644\u0627\u06af\u06cc\u0646 wp-ftp-media-library \u0631\u0627 \u0627\u0632 \u06a9\u0634\u0648\u06cc\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f , \u062f\u0631 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u06a9\u062f \u0632\u06cc\u0631 \u0628\u06af\u0631\u062f\u06cc\u062f :<\/p>\n<p style=\"text-align: justify\"><code class=\"php variable\">$settings<\/code><code class=\"php plain\">= <\/code><code class=\"php keyword\">array<\/code><code class=\"php plain\">(<\/code><\/p>\n<p style=\"text-align: justify\"><code class=\"php string\">'host'<\/code><code class=\"php plain\">=&gt; <\/code><code class=\"php string\">'ip or hostname'<\/code><code class=\"php plain\">,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ * the ftp-server hostname<\/code><\/p>\n<p style=\"text-align: justify\"><code class=\"php string\">'user'<\/code><code class=\"php plain\">=&gt; <\/code><code class=\"php string\">'username'<\/code><code class=\"php plain\">,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ * ftp-user<\/code><\/p>\n<p style=\"text-align: justify\"><code class=\"php string\">'pass'<\/code><code class=\"php plain\">=&gt; <\/code><code class=\"php string\">'password'<\/code><code class=\"php plain\">,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ * ftp-password<\/code><\/p>\n<p style=\"text-align: justify\"><code class=\"php string\">'cdn'<\/code><code class=\"php plain\">=&gt;\u00a0\u00a0\u00a0 <\/code><code class=\"php string\">'cdn.example.com'<\/code><code class=\"php plain\">,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ * This have to be a pointed domain or subdomain to the root of the uploads<\/code><\/p>\n<p style=\"text-align: justify\"><code class=\"php string\">'path'<\/code><code class=\"php plain\">=&gt; <\/code><code class=\"php string\">'\/'<\/code><code class=\"php plain\">,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ - ftp-path, default is root (\/). Change here and add the dir on the ftp-server,<\/code><\/p>\n<div class=\"line number7 index6 alt2\"><code class=\"php string\">'base'<\/code><code class=\"php plain\">=&gt;\u00a0\u00a0\u00a0 <\/code><code class=\"php variable\">$upload_dir<\/code><code class=\"php plain\">[<\/code><code class=\"php string\">'basedir'<\/code><code class=\"php plain\">]\u00a0\u00a0 <\/code><code class=\"php comments\">\/\/ Basedir on local <\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"php plain\">);<\/code><\/div>\n<p style=\"text-align: justify\">\u062d\u0627\u0644\u0627 \u0637\u0628\u0642 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0632\u06cc\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062e\u0648\u062f \u0631\u0627 \u062c\u0627 \u06af\u0630\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f :<\/p>\n<p style=\"text-align: justify\">host = \u0622\u062f\u0631\u0633 \u0647\u0627\u0633\u062a \u06cc\u0627 \u0641\u0636\u0627\u06cc ftp \u062e\u0648\u062f \u06cc\u0627 ip \u0622\u0646 .<br \/>\nuser = \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0647\u0627\u0633\u062a \u06cc\u0627 ftp.<br \/>\npass = \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0647\u0627\u0633\u062a \u06cc\u0627 ftp.<br \/>\ncdn = \u0646\u0648\u0639 \u0622\u062f\u0631\u0633 \u062f\u0647\u06cc \u0627\u0632 \u0647\u0627\u0633\u062a \u06cc\u0627 ftp. \u0645\u062b\u0644\u0627 cdn.mydomain.com<\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/github.com\/konooa\/wp-ftp-media-library\" rel=\"nofollow noopener\" target=\"_blank\"><strong>\u062f\u0627\u0646\u0644\u0648\u062f \u0627\u0641\u0632\u0648\u0646\u0647<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0648\u0627\u0644\u0627\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0686\u0637\u0648\u0631\u06cc \u0628\u0627 \u0648\u0631\u062f\u067e\u0631\u0633 \u06a9\u0627\u0631 \u06a9\u0646\u06cc\u0645 \u0648\u0644\u06cc \u0622\u067e\u0644\u0648\u062f \u0642\u0633\u0645\u062a \u0631\u0633\u0627\u0646\u0647 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u062a\u0631\u062c\u06cc\u062d\u0627 \u0633\u0631\u0648\u0647\u0627\u06cc \u0648\u0627\u0631\u0632 \u06cc\u0627 ftp \u0647\u0627 \u0628\u0627\u0634\u0647 \u061f \u06cc\u0647 \u062c\u0633\u062a\u062c\u0648\u06cc \u06a9\u0648\u0686\u06a9 \u0645\u0627 \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0645\u06cc \u0631\u0633\u0627\u0646\u062f \u06a9\u0647\u00a0\u00a0\u0628\u0647 \u0633\u0648\u0631\u0633 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u0631\u0633\u06cc\u062f\u00a0\u06a9\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0648\u0631\u0633 \u0647\u0627\u06cc \u063a\u06cc\u0631 \u0645\u0639\u062a\u0628\u0631 ( \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0638\u0631 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1838,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[31],"tags":[],"class_list":["post-2417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webmaster"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/posts\/2417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/comments?post=2417"}],"version-history":[{"count":2,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/posts\/2417\/revisions"}],"predecessor-version":[{"id":2420,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/posts\/2417\/revisions\/2420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/media\/1838"}],"wp:attachment":[{"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/media?parent=2417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/categories?post=2417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pardis.it\/mag\/wp-json\/wp\/v2\/tags?post=2417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}