开发者 |
Mattias Kallio
mattiaspkallio |
---|---|
更新时间 | 2025年2月24日 20:25 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 6.7.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
add_filter("snillrik_lm_rewrite_menu",function($thename){ return "menue"; },10,1);
add_filter("snillrik_lm_rewrite_dish",function($thename){ return "dish"; },10,1);
Template / html for each dish.
The default template is a bit basic, but it's easy to style and it's a good start. If you want to change the html for each dish, use this filter.
`add_filter('snillrik_restaurant_dishbox_html', function ($return_html, $atts) {
$post_title = $atts['title'];
$tag_strings = $atts['tags'];
$content_str = $atts['content'];
$ingredients_str = $atts['ingredients'];
$price_str = $atts['price'];
$thumb = $atts['thumb'];
return "
$tag_strings
$post_title
$content_str
$ingredients_str
$price_str
$thumb
";
}, 10, 2);`
Active Contributors
*Mattias P Kallio
Yes. I will fix this in a later version, but for now the menues list all the categories and the foods belonging to that category under it.
Our team answers your questions at: http://www.snillrik.se