{"id":109,"date":"2009-11-04T15:15:20","date_gmt":"2009-11-04T13:15:20","guid":{"rendered":"http:\/\/wordpress.co.ua\/?p=109"},"modified":"2015-08-18T16:07:53","modified_gmt":"2015-08-18T14:07:53","slug":"i-like-this-wordpress-plugin-uk","status":"publish","type":"post","link":"https:\/\/demo.wordpress.co.ua\/mission-news\/blog\/2009\/11\/04\/i-like-this-wordpress-plugin-uk\/","title":{"rendered":"\u0414\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u043d\u043e\u0432\u0438\u0445 \u0445\u0430\u043a\u0456\u0432 \u0434\u043b\u044f WordPress"},"content":{"rendered":"<h2>\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u0443 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f\u0445:<\/h2>\n<p>\u042f\u043a\u0449\u043e \u0445\u0442\u043e\u0441\u044c \u0443 \u0442\u0435\u043a\u0441\u0442\u0456 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f \u0437\u0430\u043b\u0438\u0448\u0435 \u043b\u0456\u043d\u043a, \u043d\u0430 \u0437\u0440\u0430\u0437\u043e\u043a http:\/\/blog.com, \u043f\u0456\u0441\u043b\u044f \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u0446\u0435\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441\u0442\u0430\u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u043c \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f\u043c, \u044f\u043a \u0446\u0435 <a href=\"#\">http:\/\/blog.com<\/a>.<br \/>\n\u0422\u0430\u043a \u043e\u0442, \u044f\u043a\u0449\u043e \u0412\u0438 \u0431\u0430\u0436\u0430\u0454\u0442\u0435, \u0430\u0431\u0438 \u0446\u044c\u043e\u0433\u043e \u043d\u0435 \u0432\u0456\u0434\u0431\u0443\u0432\u0430\u043b\u043e\u0441\u044c, \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0444\u0430\u0439\u043b\u0443 functions.php \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434:<br \/>\n[php]<br \/>\nremove_filter(&#8216;comment_text&#8217;, &#8216;make_clickable&#8217;, 9);<br \/>\n[\/php]<br \/>\n<!--more--><\/p>\n<h2>\u0421\u043f\u043e\u0432\u0456\u0449\u0430\u0439\u0442\u0435 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u043f\u0440\u043e \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043f\u043e email:<\/h2>\n<p>\u042f\u043a\u0449\u043e \u0431\u0430\u0436\u0430\u0454\u0442\u0435, \u0430\u0431\u0438 \u043f\u0440\u0438 \u043a\u043e\u0436\u043d\u0456\u0439 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u043d\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0443 \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u043e\u0432\u0430\u043d\u0438\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c \u043d\u0430\u0434\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u043d\u0430 \u043f\u043e\u0448\u0442\u0443, \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0444\u0430\u0439\u043b\u0443 functions.php \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434:<br \/>\n[php]<br \/>\nfunction uawp_email_members($post_ID)  {<br \/>\n    global $wpdb;<br \/>\n    $usersarray = $wpdb-&gt;get_results(&quot;SELECT user_email FROM $wpdb-&gt;users;&quot;);<br \/>\n    $users = implode(&quot;,&quot;, $usersarray);<br \/>\n    mail($users, &quot;\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0456!&quot;, &#8216;\u041d\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 \u043e\u043f\u0443\u0431\u043b\u0456\u043a\u043e\u0432\u0430\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0456 http:\/\/wordpress.co.ua&#8217;);<br \/>\n    return $post_ID;<br \/>\n}<\/p>\n<p>add_action(&#8216;publish_post&#8217;, &#8216;uawp_email_members&#8217;);<\/p>\n<p>[\/php]<\/p>\n<h2>\u0414\u043e\u0434\u0430\u0442\u0438 \u0433\u043e\u043b\u043e\u0432\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f (post thumbnails) \u0434\u043e RSS \u0441\u0442\u0440\u0456\u0447\u043a\u0438:<\/h2>\n<p>\u041f\u043e \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044e \u0433\u043e\u043b\u043e\u0432\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0434\u043e \u0441\u0442\u0440\u0456\u0447\u043a\u0438 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442\u044c, \u0430\u0431\u0438 \u0446\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0444\u0430\u0439\u043b\u0443 functions.php \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434:<br \/>\n[php]<br \/>\nfunction uawp_post_thumbnail_feeds($content) {<br \/>\n        global $post;<br \/>\n        if(has_post_thumbnail($post-&gt;ID)) {<br \/>\n                $content = &#8216;&lt;div&gt;&#8217; . get_the_post_thumbnail($post-&gt;ID) . &#8216;&lt;\/div&gt;&#8217; . $content;<br \/>\n        }<br \/>\n        return $content;<br \/>\n}<br \/>\nadd_filter(&#8216;the_excerpt_rss&#8217;, &#8216;uawp_post_thumbnail_feeds&#8217;);<br \/>\nadd_filter(&#8216;the_content_feed&#8217;, &#8216;uawp_post_thumbnail_feeds&#8217;);<\/p>\n<p>[\/php]<\/p>\n<h2>DEBUG \u0440\u0435\u0436\u0438\u043c:<\/h2>\n<p>\u042f\u043a\u0449\u043e \u0412\u0438 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a, \u0431\u0443\u0432\u0430\u0454 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 DEBUG \u0440\u0435\u0436\u0438\u043c. \u0410\u043b\u0435 \u044f\u043a\u0449\u043e \u0441\u0430\u0439\u0442 \u0440\u043e\u0431\u043e\u0447\u0438\u0439? \u0412\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0430\u043c \u043d\u0435 \u0434\u0443\u0436\u0435 \u0441\u043f\u043e\u0434\u043e\u0431\u0430\u0454\u0442\u044c\u0441\u044f \u0441\u043b\u0443\u0436\u0431\u043e\u0432\u0430 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0435\u0440\u0435\u0434 \u043e\u0447\u0438\u043c\u0430 :). \u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0444\u0430\u0439\u043b\u0443 functions.php \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434, \u0442\u0430 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043c\u0438\u043a\u0430\u0442\u0438 \u0446\u0435\u0439 \u0440\u0435\u0436\u0438\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0447\u0438 \u0437\u0430 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f\u043c \u043d\u0430 \u0437\u0440\u0430\u0437\u043e\u043a https:\/\/wordpress.co.uaabout?debug=debug:<br \/>\n[php]<br \/>\nif ( isset($_GET[&#8216;debug&#8217;]) &amp;&amp; $_GET[&#8216;debug&#8217;] == &#8216;debug&#8217;)<br \/>\n  define(&#8216;WP_DEBUG&#8217;, true);<\/p>\n<p>[\/php]<\/p>\n<h2>\u041f\u0435\u0440\u0435\u0433\u043b\u044f\u0434 PDF \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e Google Docs \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0447\u0430:<\/h2>\n<p>\u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0444\u0430\u0439\u043b\u0443 functions.php \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434, \u0442\u0430 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043a\u043e\u0434, \u0430\u0431\u0438 \u0432\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0438 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u043b\u0438 PDF \u0444\u0430\u0439\u043b\u0438 \u0443 Google Docs \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0447\u0456:<br \/>\n[php]<br \/>\nfunction uawp_pdflink($attr, $content) {<br \/>\n        return &#8216;&lt;a class=&quot;pdf&quot; href=&quot;http:\/\/docs.google.com\/viewer?url=&#8217; . $attr[&#8216;href&#8217;] . &#8216;&quot;&gt;&#8217;.$content.'&lt;\/a&gt;&#8217;;<br \/>\n}<br \/>\nadd_shortcode(&#8216;pdf&#8217;, &#8216;uawp_pdflink&#8217;);<\/p>\n<p>[\/php]<br \/>\n\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430\u043a:<br \/>\n[html]<br \/>\n[pdf href=&quot;http:\/\/yoursite.com\/linktoyour\/file.pdf&quot;]\u041f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044c PDF[\/pdf]<br \/>\n[\/html]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u0443 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f\u0445: \u042f\u043a\u0449\u043e \u0445\u0442\u043e\u0441\u044c \u0443 \u0442\u0435\u043a\u0441\u0442\u0456 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f \u0437\u0430\u043b\u0438\u0448\u0435 \u043b\u0456\u043d\u043a, \u043d\u0430 \u0437\u0440\u0430\u0437\u043e\u043a http:\/\/blog.com, \u043f\u0456\u0441\u043b\u044f \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u0446\u0435\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441\u0442\u0430\u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u043c \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f\u043c, \u044f\u043a \u0446\u0435 http:\/\/blog.com. \u0422\u0430\u043a \u043e\u0442,&#8230;<\/p>\n","protected":false},"author":3,"featured_media":284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[17,32,44,59],"class_list":["post-109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hacks","tag-i-like-this","tag-bezkoshtovno","tag-44","tag-59","entry"],"_links":{"self":[{"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":1,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/posts\/109\/revisions\/285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/media\/284"}],"wp:attachment":[{"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.wordpress.co.ua\/mission-news\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}