whoami7 - Manager
:
/
home
/
techyfnq
/
www
/
wp-content
/
plugins
/
site-reviews
/
plugin
/
Commands
/
Upload File:
files >> //home/techyfnq/www/wp-content/plugins/site-reviews/plugin/Commands/RegisterShortcodes.php
<?php namespace GeminiLabs\SiteReviews\Commands; use GeminiLabs\SiteReviews\Contracts\CommandContract as Contract; use GeminiLabs\SiteReviews\Helper; class RegisterShortcodes implements Contract { public $shortcodes; public function __construct($input) { $this->shortcodes = $input; } /** * @return void */ public function handle() { foreach ($this->shortcodes as $shortcode) { $shortcodeClass = Helper::buildClassName([$shortcode, 'shortcode'], 'Shortcodes'); if (!class_exists($shortcodeClass)) { glsr_log()->error(sprintf('Shortcode class missing (%s)', $shortcodeClass)); continue; } add_shortcode($shortcode, [glsr($shortcodeClass), 'buildShortcode']); } } }
Copyright ©2021 || Defacer Indonesia