Created
June 18, 2018 17:25
-
-
Save badabingbreda/2b1bb693c3f1cf86ab44a4de78f667e5 to your computer and use it in GitHub Desktop.
Toolbox Example - extending timber posts data
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_filter( 'toolbox_timber_posts_data' , 'my_custom_data' ,10 ,1 ); | |
function my_custom_data( $data ) { | |
$data['mydata'] = array( | |
'firstname' => 'John', | |
'lastname' => 'Doe' | |
); | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment