Helper.php
3 months ago
Importer_Alterator.php
3 months ago
Quiet_Skin.php
5 years ago
Quiet_Skin_Legacy.php
5 years ago
Slug_Mapping.php
3 months ago
Quiet_Skin.php
60 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The plugin upgrader quiet skin. |
| 4 | * |
| 5 | * Used to silence installation progress for plugins installs. |
| 6 | * |
| 7 | * @package templates-patterns-collection |
| 8 | */ |
| 9 | |
| 10 | namespace TIOB\Importers\Helpers; |
| 11 | |
| 12 | use WP_Upgrader_Skin; |
| 13 | |
| 14 | /** |
| 15 | * Class Quiet_Skin |
| 16 | * |
| 17 | * Silences plugin install and activate. |
| 18 | */ |
| 19 | class Quiet_Skin extends WP_Upgrader_Skin { |
| 20 | /** |
| 21 | * Done Header. |
| 22 | * |
| 23 | * @var bool |
| 24 | */ |
| 25 | public $done_header = true; |
| 26 | |
| 27 | /** |
| 28 | * Done Footer. |
| 29 | * |
| 30 | * @var bool |
| 31 | */ |
| 32 | public $done_footer = true; |
| 33 | |
| 34 | /** |
| 35 | * Feedback function overwrite. |
| 36 | * |
| 37 | * @param string $string feedback string. |
| 38 | * @param mixed ...$args feedback args. |
| 39 | */ |
| 40 | public function feedback( $string, ...$args ) { |
| 41 | // Keep install quiet. |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Quiet after. |
| 46 | */ |
| 47 | public function after() { |
| 48 | // Quiet after |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Quiet before. |
| 53 | */ |
| 54 | public function before() { |
| 55 | // Quiet before. |
| 56 | } |
| 57 | |
| 58 | |
| 59 | } |
| 60 |