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

Legacy: begin a legacy mode with swapping of hooks (DNM) #92

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

kraftbj
Copy link
Contributor

@kraftbj kraftbj commented Mar 26, 2025

As time evolves, SCF is likely to diverge from the ACF parent. Similar to the great renaming in WordPress, SCF should start to move things to a new naming scheme. For backwards compatiblity, I'm thinking of having a "legacy mode". Open to thoughts on the idea in principle and in implementation!

Additionally, need to confirm scf_ is the best prefix moving forward.

@kraftbj kraftbj requested a review from Copilot March 26, 2025 18:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces documentation updates for legacy support with a new hook naming scheme and reworks several reference files to support the transition to SCF legacy mode. Key changes include:

  • Adding new documentation pages for legacy hooks and block bindings.
  • Updating hook names in META.md to incorporate the new "scf" prefix.
  • Standardizing file references and list formats across multiple documentation files.

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/code-reference/hooks/action.md New documentation for ACF hooks with potential legacy implications.
docs/code-reference/hooks/filter.md New documentation for an ACF filter hook.
docs/code-reference/admin/views/global/index.md Header and link format updated for clarity.
docs/code-reference/legacy/* New legacy documentation pages introduced for hook mappings.
docs/code-reference/META.md Updated hook entries to reflect the new SCF naming convention.
Other files Consistent reformatting from dashed to asterisk bullet lists and minor docblock corrections.
Comments suppressed due to low confidence (3)

docs/code-reference/admin/views/global/index.md:1

  • [nitpick] The header 'Global' may be overly generic compared to the previous 'Admin Views Global'; consider using a more descriptive title to maintain context.
# Global

docs/code-reference/acf-helper-functions-file.md:117

  • Ensure that updating the return annotation from '@return array' to '@return void' is consistent with the actual function behavior.
* @return void

docs/code-reference/META.md:9

  • Verify that all legacy hook names have been updated consistently to use the 'scf' prefix, and confirm that no outdated 'acf' references remain.
+- `scf_bindings_field_not_allowed_message`

@kraftbj kraftbj changed the title Legacy: begin a legacy mode with swapping of hooks Legacy: begin a legacy mode with swapping of hooks (DNM) Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant