-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create a Timber.php Class and... #5
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative:
The
Theme
class inTheme.php
could be refactored to do this, since its mostly Timber focused anyway. That said.... the requirements are also heavily ACF required, so... 🤷Changes and/or things to put in
Timber.php
classacf_block_gutenberg_callback()
into it, so its only needed once (though, obviously, unique blocks can call their own).elegant_get_timber_template_directories()
into it, so its not a 'stand-alone' function onTheme.php
and embarrassing me.elegant_add_to_timber_paths()
into it, so its not a 'stand-alone' function onTheme.php
and embarrassing me.New
Create a
hook_load_point()
andhook_save_point()
function to leverage both theacf/settings/load_json
filter and theacf/settings/save_json
filter for the custom ACF blocks loaded within theBlock
directory.Something like:
The text was updated successfully, but these errors were encountered: