Title: Action: redirection_log &gt; Log data (array)
Last modified: May 6, 2024

---

# Action: redirection_log > Log data (array)

 *  Resolved Anonymous User 15141300
 * (@anonymized-15141300)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/action-redirection_log-log-data-array/)
 * I want to use the **redirection_log** action described here: [https://redirection.me/developer/wordpress-hooks/](https://redirection.me/developer/wordpress-hooks/)
   to be able to send a webhook to an external URL (using WP Webhooks) with data
   of the redirect, plus some extra data. The question is simple…what is the content
   structure or what is an example of the **$log** array? What data does this array
   have?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/action-redirection_log-log-data-array/#post-17737292)
 *     ```wp-block-code
       <?php add_filter( 'redirection_log', function( $data ) { error_log( print_r( $data, true ) ); return $data; } );
       ```
   
 * This will output the data.
 *  Thread Starter Anonymous User 15141300
 * (@anonymized-15141300)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/action-redirection_log-log-data-array/#post-17737445)
 * Ok, thanks [@johnny5](https://wordpress.org/support/users/johnny5/) I was able
   to see the full array with data.
 * I was wondering why the **group ID** does not get registered in that array.
 * It would be useful to see to it.
 *  Thread Starter Anonymous User 15141300
 * (@anonymized-15141300)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/action-redirection_log-log-data-array/#post-17745935)
 * any plans to add the **group ID** in future releases? [@johnny5](https://wordpress.org/support/users/johnny5/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Action: redirection_log > Log data (array)’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User 15141300
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/action-redirection_log-log-data-array/#post-17745935)
 * Status: resolved