Skip to content

Commit

Permalink
Use pods_register_group() instead of pods_register_field()
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Jul 21, 2022
1 parent fd615ae commit 74a6986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/classes/pods-export-code-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function export_pod( $pod_name ) {
}

$output .= sprintf( "\t\$group = %s;\n\n", $this->var_export_format( $group, 1 ) );
$output .= "\tpods_register_field( \$pod['name'], \$group['name'], \$group );\n\n";
$output .= "\tpods_register_group( \$group, \$pod['name'] );\n\n";

// Output a pods_register_field() call for each field
foreach ( $group_fields as $group_field ) {
Expand Down

0 comments on commit 74a6986

Please sign in to comment.