Automatically add text phrase in all posts

Can I include a phrase like:
Contact me if you have a question or whatever
 at the foot of all posts automatically? 

  • You can use altering view input hook in your plugin, e.g. for 'object/elements/full/attachments'

    elgg_register_plugin_hook_handler('view_vars', 'object/elements/full/attachments', 'add_text', 100);
    function add_text(\Elgg\Hook $hook) {
        $vars = $hook->getValue();
        $entity = elgg_extract('entity', $vars);
        if (!$entity instanceof \ElggEntity) {
        $attachments = elgg_extract('attachments', $vars);
        $attachments .= 'Contact me if you have a question';
        $vars['attachments'] = $attachments;
       return $vars;