-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I just stumbled upon this plugin and I am BLOWN AWAY. Thank you for your fantastic contribution. I think this could be a major breakthrough for WP when combined with a page builder such as Elementor.
This plugin hasn't been updated for two years. Is there any reason to be concerned about incompatibilities?
I have tested on our staging server running PHP 7.0 and it seems totally fine, but I still wanted to check with you. Are you still using it on any sites?
And as a side-question, could you point me into the right direction of how to add custom data that can be accessed through twig?
For example, I'd like to make query parameters accessible from the plugin.
I tried making a plugin with the code below, but the filter is never executed. Could you please point me into the right direction?
add_filter( 'content_template_engine_widget_variables', function( $variables ){
echo "adding twig variables";
$variables['post']->test = "hello";
return $variables;
} );
And then I am trying to access it with
my variables: {{ post.test | esc_html }}
But it is not working and I can see the filter echo is not executed. What am I doing wrong?
Arrigato, guzaimas
PS: I love Japan and have visited many times.