{"id":8018146,"date":"2015-10-13T11:18:33","date_gmt":"2015-10-13T11:18:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/please-add-apply_filters-and-do_action-hooks\/"},"modified":"2016-09-03T03:23:14","modified_gmt":"2016-09-03T03:23:14","slug":"please-add-apply_filters-and-do_action-hooks","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/please-add-apply_filters-and-do_action-hooks\/","title":{"rendered":"please add apply_filters and do_action hooks"},"content":{"rendered":"<p>great plugin and works out of the box!<br \/>\nbut please explain how to modify $mess_max_length and $strip_spaces without modifying your plugin file?!<br \/>\nwe need some filters here. and please add a do_action hook for adding some custom hashtags by default. i.e. i have a post_type called &#8220;cars&#8221; and with each post, i want to add &#8220;#car&#8221; without tagging it each time by hand.<br \/>\nsomething like this would be nice:<br \/>\nline 92 of publicize-with-hashtags.php add:<br \/>\n<code>do_action(&quot;hashtags_append&quot;);<\/code><\/p>\n<p>then in my functions.php i can write:<\/p>\n<pre><code>function hashtags_append_static(){\n\tglobal $mess, $post;\n\tif(get_post_type() == &quot;cars&quot;) return $mess .= &#039; #cars&#039;;\n\treturn;\n}\nadd_action(&quot;hashtags_append&quot;,&quot;hashtags_append_static&quot;);<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-8018146","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8018146","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\/8018146\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8018146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}