{"id":69452,"date":"2017-06-05T05:06:00","date_gmt":"2017-06-05T05:06:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/taro-open-hour\/"},"modified":"2021-06-18T07:56:19","modified_gmt":"2021-06-18T07:56:19","slug":"taro-open-hour","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/taro-open-hour\/","author":13589055,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.1","stable_tag":"2.2.1","tested":"5.7.15","requires":"4.9.0","requires_php":"5.6","requires_plugins":"","header_name":"Business Places","header_author":"Tarosky INC","header_description":"Add open hour to any post type.","assets_banners_color":"48adc8","last_updated":"2021-06-18 07:56:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugin\/taro-open-hour","header_author_uri":"https:\/\/tarosky.co.jp","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2326,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Tarosky","date":"2017-06-05 05:05:52"},"2.0.0":{"tag":"2.0.0","author":"Tarosky","date":"2019-08-28 09:28:22"},"2.0.1":{"tag":"2.0.1","author":"Tarosky","date":"2019-08-30 05:53:22"},"2.1.0":{"tag":"2.1.0","author":"Tarosky","date":"2019-09-12 04:48:03"},"2.2.0":{"tag":"2.2.0","author":"Tarosky","date":"2019-10-17 10:50:59"},"2.2.1":{"tag":"2.2.1","author":"Tarosky","date":"2021-06-18 07:56:19"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2550265,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2550265,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2550265,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2550265,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","2.0.0","2.0.1","2.1.0","2.2.0","2.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2550265,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2550265,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2550265,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2146932,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Time table displayed on single page with short code.","2":"You can enter time shift with metabox.","3":"You can choose post types, default time shift and default open day. Good for business with several branches.","4":"Widgets available. Open hour widget and location widget."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2360,175562,6338,162],"plugin_category":[39,43],"plugin_contributors":[83237,142014],"plugin_business_model":[],"class_list":["post-69452","plugin","type-plugin","status-publish","hentry","plugin_tags-business","plugin_tags-open-hour","plugin_tags-place","plugin_tags-widget","plugin_category-business","plugin_category-customization","plugin_contributors-takahashi_fumiki","plugin_contributors-tarosky","plugin_committers-tarosky"],"banners":{"banner":"https:\/\/ps.w.org\/taro-open-hour\/assets\/banner-772x250.png?rev=2550265","banner_2x":"https:\/\/ps.w.org\/taro-open-hour\/assets\/banner-1544x500.png?rev=2550265","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/taro-open-hour\/assets\/icon-128x128.png?rev=2550265","icon_2x":"https:\/\/ps.w.org\/taro-open-hour\/assets\/icon-256x256.png?rev=2550265","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/taro-open-hour\/assets\/screenshot-1.png?rev=2550265","caption":"Time table displayed on single page with short code."},{"src":"https:\/\/ps.w.org\/taro-open-hour\/assets\/screenshot-2.png?rev=2550265","caption":"You can enter time shift with metabox."},{"src":"https:\/\/ps.w.org\/taro-open-hour\/assets\/screenshot-3.png?rev=2550265","caption":"You can choose post types, default time shift and default open day. Good for business with several branches."},{"src":"https:\/\/ps.w.org\/taro-open-hour\/assets\/screenshot-4.png?rev=2146932","caption":"Widgets available. Open hour widget and location widget."}],"raw_content":"<!--section=description-->\n<p>This plugin add places and open hours to your WordPress site.\nFormerly known as \"<strong>Taro Open Hour<\/strong>\".<\/p>\n\n<ul>\n<li>Google Map supprted.<\/li>\n<li>JSON-LD supported.<\/li>\n<\/ul>\n\n<h4>Case Study<\/h4>\n\n<p>Case 1<\/p>\n\n<p>If your site is for your book store, add site location as your business place.<\/p>\n\n<p>These location and open hour are available via widget.<\/p>\n\n<p>Case 2<\/p>\n\n<p>If your site is bouldering shop database, choose post type to be treated as location.<\/p>\n\n<p>Each single page have place and open hour information.<\/p>\n\n<h4>How to display<\/h4>\n\n<p>Widgets<\/p>\n\n<p>You can use widget for open our and business location.<\/p>\n\n<p>Shortcodes<\/p>\n\n<p>You can use shortcode <code>[open-hour]<\/code> for time table. If you are a theme developer,\njust use <code>tsoh_the_timetable()<\/code> function.<\/p>\n\n<p>For business places, you can use <code>[business-place post_id='10']<\/code>.\nThe attribute <code>post_id<\/code> can be omitted and it's default value is current post.<\/p>\n\n<h4>Acknowledgements<\/h4>\n\n<ul>\n<li>Banner images is a deliverative of the work of the Geospatial Information Authority of Japan.<\/li>\n<\/ul>\n\n<h3>Customization<\/h3>\n\n<p>Here is a list of customizations.<\/p>\n\n<h4>Change Style<\/h4>\n\n<p>If you have <code>tsoh-style.css<\/code> in your theme folder, it will be used.\nChild theme supported.<\/p>\n\n<p>We also have filter hook <code>tsoh_stylesheet<\/code>. Below is the example to change css url.<\/p>\n\n<pre> get_stylesheet_directory_uri() . '\/assets\/css\/table.css',\n        'version' =&gt; wp_get_theme()-&gt;get('Version'),\n    ];\n    return $style;\n});<\/pre>\n\n<p>If you returns <code>false<\/code> on filter hook, no style will be loaded.<\/p>\n\n<h4>Change table markup<\/h4>\n\n<p>Table's template is located at <code>taro-open-hour\/templates\/time-table.php<\/code>.\nCopy it to <code>your-theme\/template-part\/tsoh\/time-table.php<\/code> and change markups.<\/p>\n\n<p>Of course, you can change template path with filter hook.<\/p>\n\n<pre>\/\/ e.g. If post type is event, change template from default.\nadd_filter( 'tsoh_timetable_template_path', function( $path, $post ) {\n    if ( 'event' == $post-&gt;post_type ) {\n        $path = get_template_directory() . '\/templates\/yours\/event.php';\n    }\n    return $path;\n}, 10, 2 );<\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/taro-open-hour<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Go to <code>Setting &gt; Business Places<\/code> and set it up.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20contribute%20to%3F'><h3>How can I contribute to?<\/h3><\/dt>\n<dd><p>Please make issue at <a href=\"https:\/\/github.com\/tarosky\/taro-open-hour\/issues\">Github<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Map iframe is now <code>loading=\"lazy\"<\/code><\/li>\n<li>Fix admin link.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Add widgets for place and time table.<\/li>\n<li>Drop support for WordPress 4.8 and below.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Add shortcode <code>business-place<\/code>.<\/li>\n<li>Add filter and action hooks.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Bugfix: version number changed.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Change plugin name.<\/li>\n<li>Add location feature.<\/li>\n<li>Add widgets.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A WordPress plugin for business place and open hour.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/69452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=69452"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tarosky"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=69452"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=69452"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=69452"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=69452"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=69452"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=69452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}