File manager - Edit - /home/palg2351/public_html/wp-content/plugins/jetformbuilder/modules/shortcode/shortcode.php
Back
<?php namespace JFB_Modules\Shortcode; use JFB_Components\Repository\Repository_Item_Instance_Trait; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } abstract class Shortcode implements Repository_Item_Instance_Trait { public function __construct() { add_shortcode( $this->get_name(), array( $this, 'add_shortcode_callback' ) ); } abstract public function get_name(); abstract public function generate( $settings ); public function rep_item_id() { return $this->get_name(); } protected function default_args() { return array(); } public function add_shortcode_callback( $atts ) { $settings = shortcode_atts( $this->default_args(), $atts, $this->get_name() ); return $this->generate( $settings ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.4 |
proxy
|
phpinfo
|
Settings