Created
June 30, 2018 15:34
-
-
Save ronalfy/f7dd561414ad58433276bafd657efec3 to your computer and use it in GitHub Desktop.
Add Page to Event Label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'gform_pagination_event_label', 'ronalfy_gform_pagination_event_label', 10, 4 ); | |
function ronalfy_gform_pagination_event_label( $label, $form, $source_page_number, $current_page_number ) { | |
$event_label = sprintf( '%s::%d::%d', esc_html( $_SERVER['REQUEST_URI'] ), absint( $source_page_number ), absint( $current_page_number ) ); | |
return $event_label; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment