Completed
Branch BUG-10381-asset-loading (f91422)
by
unknown
170:16 queued 157:41
created

TicketSelectorIframeEmbedButton   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addEventEditorIframeEmbedButton() 0 5 1
A __construct() 0 7 1
1
<?php
2
namespace EventEspresso\modules\ticket_selector;
3
4
use EventEspresso\core\libraries\iframe_display\IframeEmbedButton;
5
6
defined( 'ABSPATH' ) || exit;
7
8
9
10
/**
11
 * Class TicketSelectorIframeEmbedButton
12
 *
13
 * @package       Event Espresso
14
 * @author        Brent Christensen
15
 * @since         4.9
16
 */
17
class TicketSelectorIframeEmbedButton extends IframeEmbedButton
18
{
19
20
    /**
21
     * TicketSelectorIframeEmbedButton constructor.
22
     */
23
    public function __construct()
24
    {
25
        parent::__construct(
26
            esc_html__( 'Ticket Selector', 'event_espresso' ),
27
            'ticket_selector'
28
        );
29
    }
30
31
32
33
    /**
34
     * Adds an iframe embed code button to the Event editor.
35
     */
36
    public function addEventEditorIframeEmbedButton()
37
    {
38
        // add button for iframe code to event editor.
39
        $this->addEventEditorIframeEmbedButtonFilter();
40
    }
41
42
43
44
}
45
// End of file TicketSelectorIframeEmbedButton.php
46
// Location: EventEspresso\modules\ticket_selector/TicketSelectorIframeEmbedButton.php