diff --git a/gp-nested-forms/gpnf-detach-child-entry-from-parent.php b/gp-nested-forms/gpnf-detach-child-entry-from-parent.php new file mode 100644 index 000000000..79c1e6aa9 --- /dev/null +++ b/gp-nested-forms/gpnf-detach-child-entry-from-parent.php @@ -0,0 +1,40 @@ + 'Nested Forms', + 'callback' => 'detach_parent_entry_from_child', + 'context' => 'side', + ); + } + } + + return $meta_boxes; +}, 10, 3 ); + +// Callback method +function detach_parent_entry_from_child( $args ) { + $action = 'gpnf_detach_parent_entry'; + $html = sprintf( '', 'Detach from Parent', $action ); + + echo $html; +}