X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/popup-maker/classes
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
popup-maker
/
classes
/
ðŸ“
..
ðŸ“
Abstract
📄
Activator.php
(796 B)
ðŸ“
Admin
📄
Admin.php
(3.72 KB)
📄
Ajax.php
(1.66 KB)
📄
Analytics.php
(7.79 KB)
📄
AssetCache.php
(19.99 KB)
ðŸ“
Batch
📄
Cache.php
(252 B)
📄
ConditionCallbacks.php
(6.35 KB)
📄
Conditions.php
(14.26 KB)
📄
Cookies.php
(7.67 KB)
ðŸ“
DB
📄
DataStorage.php
(382 B)
📄
Deactivator.php
(594 B)
ðŸ“
Extension
📄
Extensions.php
(5.34 KB)
📄
GA.php
(2.31 KB)
📄
Helpers.php
(8.04 KB)
📄
Install.php
(7.92 KB)
ðŸ“
Integration
📄
Integrations.php
(12.69 KB)
ðŸ“
Interface
📄
Licensing.php
(7.69 KB)
📄
ListTable.php
(41.08 KB)
📄
Logging.php
(266 B)
ðŸ“
Model
ðŸ“
Newsletter
📄
Newsletters.php
(8.85 KB)
📄
Options.php
(308 B)
📄
Popup.php
(240 B)
📄
Popups.php
(787 B)
📄
Previews.php
(3.62 KB)
📄
Privacy.php
(16.22 KB)
ðŸ“
Repository
ðŸ“
Shortcode
📄
Shortcode.php
(11.61 KB)
📄
Shortcodes.php
(1.28 KB)
ðŸ“
Site
📄
Site.php
(4.67 KB)
📄
Telemetry.php
(10.31 KB)
📄
Triggers.php
(10.33 KB)
📄
Types.php
(7.59 KB)
ðŸ“
Upgrade
📄
Upgrades.php
(348 B)
📄
Upsell.php
(7.52 KB)
ðŸ“
Utils
📄
index.php
(116 B)
Editing: Shortcodes.php
<?php /** * Shortcodes class * * @package PopupMaker * @copyright Copyright (c) 2024, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class PUM_Shortcodes * * This class maintains a global set of all registered PUM shortcodes. */ class PUM_Shortcodes { /** * @var PUM_Shortcodes Static Instance */ private static $instance; /** * @var array Holds array of registered $shortcode_tags => $shortcode_objects. */ private $shortcodes = []; /** * Main PUM_Shortcodes Instance * * @return PUM_Shortcodes */ public static function instance() { if ( ! isset( self::$instance ) && ! ( self::$instance instanceof PUM_Shortcodes ) ) { self::$instance = new self(); } return self::$instance; } /** * Add a shortcode object to the collection. * * @param PUM_Shortcode $shortcode */ public function add_shortcode( PUM_Shortcode $shortcode ) { $this->shortcodes[ $shortcode->tag() ] = $shortcode; } /** * Get all shortcodes. * * @return array PUM_Shortcode */ public function get_shortcodes() { return $this->shortcodes; } /** * Get shortcode by tag. * * @param $tag * * @return bool|mixed */ public function get_shortcode( $tag ) { return isset( $this->shortcodes[ $tag ] ) ? $this->shortcodes[ $tag ] : false; } }
Upload File
Create Folder