PluginProbe
Restrict User Access – Ultimate Membership & Content Protection / 2.8
Restrict User Access – Ultimate Membership & Content Protection v2.8
trunk 1.3 2.0 2.1.3 2.2.3 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.5 2.6 2.6.1 2.7 2.7.1 2.8 2.8.1
restrict-user-access / src / Shortcode / ShortcodeService.php

ShortcodeService.php in Restrict User Access – Ultimate Membership & Content Protection 2.8, at src/Shortcode/ShortcodeService.php

24 lines 495 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RestrictUserAccess\Shortcode;
4
5 /**
6 * Class ShortcodeService
7 *
8 * @author Joachim Jensen <joachim@dev.institute>
9 * @license https://www.gnu.org/licenses/gpl-3.0.html
10 */
11 class ShortcodeService
12 {
13 /**
14 * @param ShortcodeInterface $shortcode
15 * @return void
16 */
17 public function register(ShortcodeInterface $shortcode)
18 {
19 foreach ($shortcode->get_names() as $name) {
20 add_shortcode($name, [$shortcode, 'get_callback']);
21 }
22 }
23 }
24