{"id":107612,"date":"2019-08-26T13:17:52","date_gmt":"2019-08-26T13:17:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wl-opening-hours\/"},"modified":"2021-03-12T08:51:13","modified_gmt":"2021-03-12T08:51:13","slug":"wl-opening-hours","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wl-opening-hours\/","author":15013683,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"trunk","tested":"5.7.0","requires":"4.9","requires_php":"7.0","requires_plugins":"","header_name":"WL Opening Hours","header_author":"WP Hosting","header_description":"Opening-hours shortcodes and widgets for any number of departments\/venues","assets_banners_color":"","last_updated":"2021-03-12 08:51:13","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/wl-opening-hours\/","header_author_uri":"https:\/\/webloft.no\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":500,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[175457],"plugin_category":[],"plugin_contributors":[95100,158461],"plugin_business_model":[],"class_list":["post-107612","plugin","type-plugin","status-closed","hentry","plugin_tags-openinghours","plugin_contributors-iverok","plugin_contributors-wphostingdev","plugin_committers-webloeft"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wl-opening-hours.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><em>Manage opening hours for several venues using custom post types shortcodes and widgets<\/em><\/p>\n\n<p>This plugin allows you to manage several sets of opening hours as a custom post type. Each set can be associated with a number of venues. You can display these individually, or you can automatically show the current (ie most recently published) opening hours for a set of venues in one of three views.<\/p>\n\n<p>If you have several opening hours for a given venue, the most recently published will be used. Thus you can use post scheduling to automatically change opening hours on a given date.<\/p>\n\n<h3>How to install the plugin<\/h3>\n\n<ol>\n<li>Install the plugin using WordPress\u2019 <a href=\"https:\/\/codex.wordpress.org\/Managing_Plugins#Installing_Plugins\">built-in installer<\/a>. The plugin can also be installed manually by upload the plugin files to the \/wp-content\/plugins\/ directory.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Go to the WL Opening Hours list, and add your hours<\/li>\n<li>Display the hours through widget or shortcode<\/li>\n<\/ol>\n\n<h4>Shortcodes<\/h4>\n\n<p>If not using widgets, the plugin provides a shortcode with these forms:\n * <code>[show-opening-hours id='postid']<\/code> - Show a single set of opening hours using the post id\n * <code>[show-opening-hours venue='venueslug']<\/code> - Show the most recent set of opening hours for the given venue\n * <code>[show-opening-hours venues='comma separated list of venue slugs' view=\"one of tabbed,list,accordion\"]<\/code> - Show several venues' opening hours with the given view\n * <code>[show-opening-hours view='one of tabbed,list,accordion']<\/code> - Show all venues opening hours with the given view<\/p>\n\n<h4>Filters and Hooks for customization<\/h4>\n\n<p>There are several filters\/hooks you can use to customize the behaviour of this plugin:\n * Filter: 'wl-opening-hours-template-path': Takes a path, a view indicator and data for the display of opening hours, should return a path which will be loaded as a template for displaying the hours\n * Filter: 'wl_openinghours_view': Takes the HTML output for a set of opening hours, the data that genereated it and a view code, should return html\n * Filter: 'wl_opening_hours_views': Takes a map from view name to view slug and should return the same. Use this to extend the plugin with new views together with the above filters<\/p>\n\n<h4>Customizing templates<\/h4>\n\n<p>If you copy the files in the \"templates\" directory of this plugin to a \"wl-opening-hours\" subdirectory of your child-theme, these will be used instead of the provided templates. The $opening_hours variable will then contain an array from Venue to opening hours, with one of the variables being the post itself.<\/p>\n\n<h4>CSS<\/h4>\n\n<p>Please see the file css\/wl-opening-hours.css for the classes used - these are all overridable in your theme<\/p>\n\n<!--section=changelog-->\n<h4>2019.10.17 version 1.0.1<\/h4>\n\n<ul>\n<li>Minor fixes<\/li>\n<\/ul>\n\n<h4>2019.08.26 version 1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Manage opening hours for several venues using custom post types shortcodes and widgets","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/107612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=107612"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webloeft"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=107612"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=107612"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=107612"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=107612"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=107612"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=107612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}