• Resolved Anonymous User 15141300

    (@anonymized-15141300)


    I want to use the redirection_log action described here: 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

    (@johnny5)

    <?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)

    Ok, thanks @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)

    any plans to add the group ID in future releases? @johnny5

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Action: redirection_log > Log data (array)’ is closed to new replies.