Add Custom Label for “Add Entry” Button Depending on Child Entry Count
Use this snippet to set a custom “Add Entry” button label when there are no child entries. In this example, the button will read “Add First Entry” if there are no child entries and “Add Another Entry” if there is at least one child entry.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gpnf-custom-add-entry-button-labels-depending-on-child-entry-count.php