The PDF Stamper Plugin plugin has a filter that you can use to dynamically modify the “text to stamp” field’s value. This 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('filter_stamper_text_after_replacing_tags', 'customize_text_to_stamp', 10, 2); function customize_text_to_stamp ($text_to_stamp, $additional_params) { //Add some extra text $text_to_stamp .= "Adding this test message to the stamping test"; return $text_to_stamp;//The text you return from this function will be stamped }