Skip to content

Instantly share code, notes, and snippets.

@lucprincen
Last active July 7, 2016 13:56
Show Gist options
  • Save lucprincen/6e070e0faca1cb8632b546807cec4f85 to your computer and use it in GitHub Desktop.
Save lucprincen/6e070e0faca1cb8632b546807cec4f85 to your computer and use it in GitHub Desktop.
/** Sections: **/
add_filter( 'chef_sections_column_template_base', function(){
return 'elements/columns/';
});
add_filter( 'chef_sections_block_template_base', function(){
return 'elements/block/';
});
add_filter( 'chef_sections_section_template_base', function(){
return 'views/sections/';
});
add_filter( 'chef_sections_collection_template_base', function(){
return 'views/collection/';
});
/** Cuisine: **/
add_filter( 'cuisine_template_location', function(){
return 'templates/';
});
apply_filters( 'cuisine-404-template', function(){
return 'views/404.php';
});
apply_filters( 'cuisine_theme_pages_folder', function(){
return 'templates/';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment