Jump to content

Theme explorer on the go - filter


Alex.1

Recommended Posts

Hi, 

Just a (filter or hook) 😄 that I find if very useful when debugging the themes. Now you just need to append ?te=1 to jreviews page and you'll activate the theme explorer in the frontend. Saves a lot of time and clicks. 

Clickfwd\Hook\Filter::add('site_init', function() 
{
	S2Object::make('config')->debug_theme_enable = S2Object::make('request')->get('te');
});

Credit to: @Alejandro

Thanks

 

Alex

 

Edited by Alex.1
correction
  • Like 1
  • Thanks 2
Link to comment
  • 2 weeks later...
×
×
  • Create New...