PluginProbe
Additional Terms Lite for WooCommerce / 1.6.1
Additional Terms Lite for WooCommerce v1.6.1
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 / Helper / Links.php

Links.php in Additional Terms Lite for WooCommerce 1.6.1, at src/Helper/Links.php

55 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Helper links used throughout the plugin.
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\Helper;
13
14 /**
15 * Helper links.
16 */
17 abstract class Links {
18
19 /**
20 * Get the url for the documentation with the given path.
21 *
22 * @since 1.6.0
23 *
24 * @param string $path The path to the documentation page.
25 * @param array $args The query args.
26 *
27 * @return string
28 */
29 public static function docs_uri( $path = '', $args = array() ) {
30
31 return path_join(
32 'https://mypreview.github.io/woo-additional-terms',
33 add_query_arg( $args, $path )
34 );
35 }
36
37 /**
38 * Get the url for the pro version with the given path.
39 *
40 * @since 1.6.0
41 *
42 * @param string $path The path to the pro version page.
43 * @param array $args The query args.
44 *
45 * @return string
46 */
47 public static function pro_uri( $path = '', $args = array() ) {
48
49 return path_join(
50 'https://mypreview.one/woo-additional-terms/',
51 add_query_arg( $args, $path )
52 );
53 }
54 }
55