{"id":356,"date":"2016-01-28T23:43:01","date_gmt":"2016-01-28T23:43:01","guid":{"rendered":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/?page_id=356"},"modified":"2016-01-28T23:44:23","modified_gmt":"2016-01-28T23:44:23","slug":"pdf-stamper-dynamically-modifying-the-text-to-stamp-data","status":"publish","type":"page","link":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/pdf-stamper-dynamically-modifying-the-text-to-stamp-data","title":{"rendered":"PDF Stamper &#8211; Dynamically Modifying the Text to Stamp Data"},"content":{"rendered":"<p>The <a href=\"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper-plugin-2332\">PDF Stamper Plugin<\/a>\u00a0plugin has a filter that you can use to dynamically modify the &#8220;text to stamp&#8221; field&#8217;s value.\u00a0This is useful when you want to apply some customization to that text that is about to be stamped.<\/p>\n<p>The following code example shows how you can use this filter:<\/p>\n<pre>add_filter('filter_stamper_text_after_replacing_tags', 'customize_text_to_stamp', 10, 2);\r\nfunction customize_text_to_stamp ($text_to_stamp, $additional_params) \r\n{\r\n    \/\/Add some extra text\r\n    $text_to_stamp .= \"Adding this test message to the stamping test\";\r\n\r\n    return $text_to_stamp;\/\/The text you return from this function will be stamped\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The PDF Stamper Plugin\u00a0plugin has a filter that you can use to dynamically modify the &#8220;text to stamp&#8221; field&#8217;s value.\u00a0This is useful when you want to apply some customization to that text that is about to be stamped. The following code example shows how you can use this filter: add_filter(&#8216;filter_stamper_text_after_replacing_tags&#8217;, &#8216;customize_text_to_stamp&#8217;, 10, 2); function customize_text_to_stamp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/pages\/356"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/pages\/356\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/wp-pdf-stamper\/wp-json\/wp\/v2\/media?parent=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}