From 9e8ad444d1411f7bd56184eafe053615c4820bbb Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 24 Oct 2023 22:23:54 -0400 Subject: [PATCH] `gpi-capture-resource-name.php`: Added new snippet. --- gp-inventory/gpi-capture-resource-name.php | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gp-inventory/gpi-capture-resource-name.php diff --git a/gp-inventory/gpi-capture-resource-name.php b/gp-inventory/gpi-capture-resource-name.php new file mode 100644 index 000000000..92851605b --- /dev/null +++ b/gp-inventory/gpi-capture-resource-name.php @@ -0,0 +1,23 @@ +gpiResource ); + + GFAPI::update_entry_field( $entry['id'], $resource_field_id, $resource->post_title ); + +}, 10, 2 );