| 1 | <?php |
||
| 15 | class Wordlift_Tinymce_Adapter { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The {@link Wordlift} plugin instance. |
||
| 19 | * |
||
| 20 | * @since 3.12.0 |
||
| 21 | * @access private |
||
| 22 | * @var \Wordlift $plugin The {@link Wordlift} plugin instance. |
||
| 23 | */ |
||
| 24 | private $plugin; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Wordlift_Tinymce_Adapter constructor. |
||
| 28 | * |
||
| 29 | * @param \Wordlift $plugin The {@link Wordlift} plugin instance. |
||
| 30 | */ |
||
| 31 | public function __construct( $plugin ) { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Load the TinyMCE plugin. This method is called by the WP mce_external_plugins hook. |
||
| 39 | * |
||
| 40 | * @since 3.12.0 |
||
| 41 | * |
||
| 42 | * @param array $plugins The existing plugins array. |
||
| 43 | * |
||
| 44 | * @return array The modified plugins array. |
||
| 45 | */ |
||
| 46 | function mce_external_plugins( $plugins ) { |
||
| 65 | |||
| 66 | } |
||
| 67 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.