Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

feat: Enable Dynamic and Translatable TOC Headings #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mohjak
Copy link
Contributor

@mohjak mohjak commented Sep 25, 2024

  • Introduced a new method get_heading_text() in the TOC_Plus class to retrieve the TOC heading text dynamically.
  • Replaced all instances of direct retrieval $this->options['heading_text'] with the new get_heading_text() method.
  • Added a new filter toc_heading_text to allow developers to modify or translate the TOC heading text.
  • Updated admin settings to inform users about the new capability of translating the TOC heading.
  • Ensured backwards compatibility by defaulting to the existing heading text if no filters are applied.

- Introduced a new method `get_heading_text()` in the `TOC_Plus` class to retrieve the TOC heading text dynamically.
- Replaced all instances of direct retrieval `$this->options['heading_text']` with the new `get_heading_text()` method.
- Added a new filter `toc_heading_text` to allow developers to modify or translate the TOC heading text.
- Updated admin settings to inform users about the new capability of translating the TOC heading.
- Ensured backwards compatibility by defaulting to the existing heading text if no filters are applied.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant