Skip to content

Instantly share code, notes, and snippets.

@dcavins
Last active August 29, 2015 14:23
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 dcavins/a9197f21d7f31b6594bc to your computer and use it in GitHub Desktop.
Save dcavins/a9197f21d7f31b6594bc to your computer and use it in GitHub Desktop.
Capture group args at group creation
add_action( 'groups_group_after_save', 'bp_45123590' );
function bp_45123590( $group_args ) {
$towrite = PHP_EOL . 'newly created group args: ' . print_r( $group_args, TRUE );
$fp = fopen('groups_group_after_save_args.txt', 'a');
fwrite($fp, $towrite);
fclose($fp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment