PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
← All changes | inc/Shortcodes/AbstractShortcode.php +30 -30 4.3.94.4.7 View file →
@@ -1,30 +1,30 @@
1 -<?php
2 -
3 -namespace LearnPress\Shortcodes;
4 -
5 -/**
6 - * Class AbstractShortcode
7 - *
8 - * @package LearnPress\Shortcodes
9 - * @since 4.2.3
10 - * @version 1.0.0
11 - */
12 -abstract class AbstractShortcode {
13 - protected $prefix = 'learn_press_';
14 - protected $shortcode_name;
15 -
16 - protected function init() {
17 - // Register shortcode.
18 - add_shortcode( $this->prefix . $this->shortcode_name, array( $this, 'render' ) );
19 - }
20 -
21 - /**
22 - * Render template of shortcode.
23 - * If not set any attribute on short, $attrs is empty string.
24 - *
25 - * @param string|array $attrs
26 - *
27 - * @return string
28 - */
29 - abstract public function render( $attrs ): string;
30 -}
1 +<?php
2 +
3 +namespace LearnPress\Shortcodes;
4 +
5 +/**
6 + * Class AbstractShortcode
7 + *
8 + * @package LearnPress\Shortcodes
9 + * @since 4.2.3
10 + * @version 1.0.0
11 + */
12 +abstract class AbstractShortcode {
13 + protected $prefix = 'learn_press_';
14 + protected $shortcode_name;
15 +
16 + protected function init() {
17 + // Register shortcode.
18 + add_shortcode( $this->prefix . $this->shortcode_name, array( $this, 'render' ) );
19 + }
20 +
21 + /**
22 + * Render template of shortcode.
23 + * If not set any attribute on short, $attrs is empty string.
24 + *
25 + * @param string|array $attrs
26 + *
27 + * @return string
28 + */
29 + abstract public function render( $attrs ): string;
30 +}