class-media-library-organizer-editor.php
902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Editor class.
*
* @package Media_Library_Organizer
* @author WP Media Library
*/
/**
* Provides an action to output buttons above the TinyMCE editor.
*
* @since 1.0.7
*/
class Media_Library_Organizer_Editor {
/**
* Holds the base class object.
*
* @since 1.0.7
*
* @var object
*/
public $base;
/**
* Constructor
*
* @since 1.0.7
*
* @param object $base Base Plugin Class.
*/
public function __construct( $base ) {
// Store base class.
$this->base = $base;
add_filter( 'media_buttons', array( $this, 'output_media_buttons' ) );
}
/**
* Outputs buttons above TinyMCE Editor instances.
*
* @since 1.0.7
*/
public function output_media_buttons() {
/**
* Outputs buttons above TinyMCE Editor instances.
*
* @since 1.0.7
*/
do_action( 'media_library_organizer_editor_output_media_buttons' );
}
}