{"id":30890,"date":"2022-05-30T13:21:04","date_gmt":"2022-05-30T13:21:04","guid":{"rendered":"https:\/\/www.itthinx.com\/?post_type=topic&#038;p=30890"},"modified":"2022-10-27T19:22:41","modified_gmt":"2022-10-27T19:22:41","slug":"groups-hook-for-shortcodes","status":"publish","type":"topic","link":"https:\/\/www.itthinx.com\/topic\/groups-hook-for-shortcodes\/","title":{"rendered":"Groups Hook for Shortcodes"},"content":{"rendered":"<p>Is there a way to hook into the existing groups shortcode and edit how the &#8220;locked content&#8221; description looks?<\/p>\n<p>I know that there is a template modification example with the 2020 template to show only an excerpt, but on the site we are using the plugin we want the author to be able to use the shortcode around whatever content they want and that locked content would then show an image with a &#8220;click here to subscribe&#8221;. All i can find is a login option or a standard button that says click to subscribe or login.<\/p>\n<p>We want to do a little bit more robust option for the &#8220;content lock&#8221;<\/p>\n<p>Basically a way to hook into the shortcode and have html code show when the content is locked, different for each shortcode or universal for all shortcodes.<\/p>\n","protected":false},"author":9054,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","forum":[1805],"topic_tag":[624,1427,1407],"topic_class":[1300],"class_list":["post-30890","topic","type-topic","status-publish","hentry","forum-groups","topic_tag-api-2","topic_tag-groups","topic_tag-shortcode","topic_class-resolved"],"_links":{"self":[{"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic\/30890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/types\/topic"}],"author":[{"embeddable":true,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/users\/9054"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/comments?post=30890"}],"version-history":[{"count":2,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic\/30890\/revisions"}],"predecessor-version":[{"id":30894,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic\/30890\/revisions\/30894"}],"wp:attachment":[{"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/media?parent=30890"}],"wp:term":[{"taxonomy":"forum","embeddable":true,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/forum?post=30890"},{"taxonomy":"topic_tag","embeddable":true,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic_tag?post=30890"},{"taxonomy":"topic_class","embeddable":true,"href":"https:\/\/www.itthinx.com\/wp-json\/wp\/v2\/topic_class?post=30890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}