{"id":233159,"date":"2023-02-06T16:07:00","date_gmt":"2023-02-06T13:07:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=233159"},"modified":"2022-11-10T19:38:43","modified_gmt":"2022-11-10T16:38:43","slug":"jak-avtomatichno-dodati-url-adresu-spilnogo-dostupu-v-kinci-kozhnoi-publikacii-ta-storinki-dlja-wordpress","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/jak-avtomatichno-dodati-url-adresu-spilnogo-dostupu-v-kinci-kozhnoi-publikacii-ta-storinki-dlja-wordpress\/","title":{"rendered":"\u042f\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0434\u043e\u0434\u0430\u0442\u0438 URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0432 \u043a\u0456\u043d\u0446\u0456 \u043a\u043e\u0436\u043d\u043e\u0457 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u0442\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0434\u043b\u044f WordPress?"},"content":{"rendered":"<p>\u0406\u043d\u043e\u0434\u0456 \u043c\u0435\u043d\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043a\u0443\u0434\u0438\u0441\u044c \u0441\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0434\u043e\u043f\u0438\u0441\u0438, \u0449\u043e\u0431 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u0456\u043b\u0438\u0442\u0438\u0441\u044f \u043d\u0438\u043c\u0438, \u0456 \u0432 \u043a\u0456\u043d\u0446\u0456 \u0434\u043e\u043f\u0438\u0441\u0443 \u044f \u0432\u043a\u0430\u0436\u0443 URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u043e\u0440\u0438\u0433\u0456\u043d\u0430\u043b\u044c\u043d\u043e\u0457 \u0441\u0442\u0430\u0442\u0442\u0456. \u0406 \u044f \u0432\u0432\u0430\u0436\u0430\u044e, \u0449\u043e \u0446\u0435 \u043d\u0435 \u0434\u0443\u0436\u0435 \u0437\u0440\u0443\u0447\u043d\u043e, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u0435\u043d\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443 \u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u0457\u0457. \u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0442\u0440\u044e\u043a \u043c\u043e\u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u0432\u0438\u0440\u0456\u0448\u0438\u0442\u0438 \u0446\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0423 \u043a\u0456\u043d\u0446\u0456 \u043a\u043e\u0436\u043d\u043e\u0457 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457\/\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0431\u0443\u0434\u0435 \u0434\u043e\u0434\u0430\u043d\u043e \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u043f\u043e\u0442\u043e\u0447\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443.<\/p>\n<p>\u0412\u0456\u0434\u0440\u0435\u0434\u0430\u0433\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u0443 <strong>functions.php<\/strong> \u0456 \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434 PHP \u0443 \u043a\u0456\u043d\u0435\u0446\u044c \u0444\u0430\u0439\u043b\u0443.<\/p>\n<pre><code>\/\/ &lt;a class=\"vglnk\" target=\"_blank\" href=\"http:\/\/helloacm.com\" rel=\"nofollow\"&gt;&lt;span&gt;helloacm&lt;\/span&gt;&lt;span&gt;.&lt;\/span&gt;&lt;span&gt;com&lt;\/span&gt;&lt;\/a&gt;\nadd_filter( 'the_content', 'insert_post' );\n\u00a0\nfunction insert_post( $content) {\n\u00a0 \u00a0 $post_id = get_the_ID();\n\u00a0 \u00a0 $link = get_permalink($post_id);\n\u00a0 \u00a0 $title = get_the_title($post_id);\n\u00a0 \u00a0 return $content.'&lt;BR\/&gt;Share this URL\uff1a&lt;a title=\"'.$title.'\" href=\"'.$link.'\"&gt;&lt;B&gt;'.$link.'&lt;\/B&gt;&lt;\/a&gt;';\n}<\/code><\/pre>\n<p>\u0426\u0435 \u0434\u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0456 \u044f\u043a\u0449\u043e \u0432\u0438 \u0437\u043d\u0430\u0454\u0442\u0435 \u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0443, \u0432\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u0442\u0435, \u0449\u043e \u0446\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454. WordPress \u0454 \u043d\u0430\u0441\u0442\u0456\u043b\u044c\u043a\u0438 \u043f\u043e\u0442\u0443\u0436\u043d\u0438\u043c, \u0442\u043e\u043c\u0443 \u0449\u043e \u0432\u0456\u043d \u0443\u0436\u0435 \u043d\u0430\u0434\u0430\u0454 \u0431\u0430\u0433\u0430\u0442\u043e \u0437\u0440\u0443\u0447\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a <strong>get_the_ID()<\/strong>, \u044f\u043a\u0430 \u043e\u0442\u0440\u0438\u043c\u0443\u0454 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438\/\u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457, <strong>get_permalink()<\/strong>, \u044f\u043a\u0430 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438\/\u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439, \u0456 <strong>get_the_title()<\/strong> \u043e\u0442\u0440\u0438\u043c\u0443\u0454 \u043d\u0430\u0437\u0432\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438\/\u0434\u043e\u043f\u0438\u0441\u0438. \u0426\u0456 \u0434\u0432\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u043c\u0430\u044e\u0442\u044c \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 [\u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457], \u044f\u043a\u0438\u0439, \u044f\u043a\u0449\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0438, \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u043e\u0442\u043e\u0447\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443\/\u0434\u043e\u043f\u0438\u0441\u0438.<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/helloacm.com\" class=\"external external_icon\">helloacm.com<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042f\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0434\u043e\u0434\u0430\u0442\u0438 URL-\u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0432 \u043a\u0456\u043d\u0446\u0456 \u043a\u043e\u0436\u043d\u043e\u0457 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u0442\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0434\u043b\u044f WordPress?<\/p>\n","protected":false},"author":1,"featured_media":223973,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[869,839,902,849,923,725],"tags":[1174],"class_list":["post-233159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-10","category-kerivnytstvo-dlia-pochatkivtsiv","category-kod-3","category-pidruchnyky","category-inshyj","category-rozrobnyk","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/233159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=233159"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/233159\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media\/223973"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=233159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=233159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=233159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}