PluginProbe
Additional Terms Lite for WooCommerce / 1.6.2
Additional Terms Lite for WooCommerce v1.6.2
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / src / Enhancements / Docs.php

Docs.php in Additional Terms Lite for WooCommerce 1.6.2, at src/Enhancements/Docs.php

50 lines 763 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin documentation content.
4 *
5 * @author MyPreview (Github: @mahdiyazdani, @gooklani, @mypreview)
6 *
7 * @since 1.6.0
8 *
9 * @package woo-additional-terms
10 */
11
12 namespace Woo_Additional_Terms\Enhancements;
13
14 use Woo_Additional_Terms\Helper;
15
16 /**
17 * Class Docs.
18 */
19 class Docs {
20
21 /**
22 * Setup hooks and filters.
23 *
24 * @since 1.6.0
25 *
26 * @return void
27 */
28 public function setup() {
29
30 add_action( 'woo_additional_terms_settings_sidebar', array( $this, 'sidebar' ), 20 );
31 }
32
33 /**
34 * Display the docs sidebar.
35 *
36 * @since 1.6.0
37 *
38 * @return void
39 */
40 public function sidebar() {
41
42 woo_additional_terms()->service( 'template_manager' )->echo_template(
43 'sidebar/docs.php',
44 array(
45 'uri' => Helper\Links::docs_uri(),
46 )
47 );
48 }
49 }
50