Skip to content

Instantly share code, notes, and snippets.

@Aeonexe
Created July 23, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aeonexe/f92a296c9576a270867195d7fe557a35 to your computer and use it in GitHub Desktop.
Save Aeonexe/f92a296c9576a270867195d7fe557a35 to your computer and use it in GitHub Desktop.
add_action( 'comment_form_before', 'action_function_6020' );
function action_function_6020( $args ){
$id = $_GET['id'];
// Gets id
}
add_action( 'comment_post', 'action_function_6020' );
function action_function_6020( $fields ){
$id = $_GET['id'];
// Doesn't get id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment