Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the easy_footnote_reset action optional based on a setting #26

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

jasonyingling
Copy link
Owner

@jasonyingling jasonyingling commented Nov 19, 2024

Fixes #25

Make the easy_footnote_reset action optional based on a setting.

  • Add a new checkbox setting for reset_footnotes in the admin form in easy-footnotes-admin.php.
  • Save the new setting to the easy_footnotes_options array in easy-footnotes-admin.php.
  • Retrieve the new setting value when displaying the admin form in easy-footnotes-admin.php.
  • Add a new option reset_footnotes to the footnoteSettings array in easy-footnotes.php.
  • Conditionally add the easy_footnote_reset filter based on the new setting in easy-footnotes.php.

For more details, open the Copilot Workspace session.

Fixes #25

Make the `easy_footnote_reset` action optional based on a setting.

* Add a new checkbox setting for `reset_footnotes` in the admin form in `easy-footnotes-admin.php`.
* Save the new setting to the `easy_footnotes_options` array in `easy-footnotes-admin.php`.
* Retrieve the new setting value when displaying the admin form in `easy-footnotes-admin.php`.
* Add a new option `reset_footnotes` to the `footnoteSettings` array in `easy-footnotes.php`.
* Conditionally add the `easy_footnote_reset` filter based on the new setting in `easy-footnotes.php`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jasonyingling/easy-footnotes/issues/25?shareId=XXXX-XXXX-XXXX-XXXX).
@jasonyingling jasonyingling merged commit 8d7efe5 into master Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the easy_footnote_reset action optional based on a setting
1 participant