Skip to content

Commit 2322a3c

Browse files
authored
gpnf-set-created-by-property-on-child-entries-after-user-registration.php: Added new snippet.
1 parent 23bf3d1 commit 2322a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp-nested-forms/gpnf-set-created-by-property-on-child-entries-after-user-registration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* 1. Install per https://gravitywiz.com/documentation/how-do-i-install-a-snippet/
1111
* 2. Configure the snippet based on inline instructions.
1212
*/
13-
add_action( 'gform_user_registered', 'add_custom_user_meta', 10, 4 );
14-
function add_custom_user_meta( $user_id, $feed, $entry, $user_pass ) {
13+
add_action( 'gform_user_registered', 'add_created_by_property', 10, 4 );
14+
function add_created_by_property( $user_id, $feed, $entry, $user_pass ) {
1515
// Update '123' with the Id of the form.
1616
if ( $entry['form_id'] !== '123' ){
1717
return;

0 commit comments

Comments
 (0)