Title: Include hyperlink in custom Log Message
Last modified: May 24, 2023

---

# Include hyperlink in custom Log Message

 *  Resolved [bibberle](https://wordpress.org/support/users/bibberle/)
 * (@bibberle)
 * [3 years ago](https://wordpress.org/support/topic/include-hyperlink-in-custom-log-message/)
 * Hi, how can I include a hyperlink in custom log message using apply_filters(“
   simple_history_log”, HYPERLINK)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [3 years ago](https://wordpress.org/support/topic/include-hyperlink-in-custom-log-message/#post-16779862)
 * You can add a link to the context, something like this:
 *     ```wp-block-code
       apply_filters(
         'simple_history_log',
         'This is the link: {link}',
         [
           'link' => 'https://example.com',
         ]
       );
       ```
   
 * But the link will not be clickable beacuse of security reasons you can not add
   any raw HTML to the logged entry. If you want to be able to add a clickable link
   you must [create your own logger](https://docs.simple-history.com/code-examples/example-logger)
   and also implement a [getLogRowPlainTextOutput()-method, for example as used in the SimpleUserLogger](https://github.com/bonny/WordPress-Simple-History/blob/dfee657821776a888a1302f3734d78fb2316bba8/loggers/SimpleUserLogger.php#L533).

Viewing 1 replies (of 1 total)

The topic ‘Include hyperlink in custom Log Message’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/include-hyperlink-in-custom-log-message/#post-16779862)
 * Status: resolved