Created
May 16, 2018 11:59
-
-
Save badabingbreda/9e72907b33502d814980eac3c6ac89f8 to your computer and use it in GitHub Desktop.
Toolbox Example - Adding Timber Template to other fieldtypes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// add the timber template option to the wysiwyg field | |
add_filter( 'toolbox/helpers/settings/type=wysiwyg' , 'toolboxConnectors::timber_template' , 10, 2 ); | |
//add the processing of the timber template to the end (or not) of the wysiwyg output filter | |
add_filter( 'toolbox/helpers/get_acf_field/type=wysiwyg' , 'toolbox::timber_template', 20, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment