Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.11 KB

plugins.md

File metadata and controls

63 lines (44 loc) · 1.11 KB

application.plugins

Set application plugins.

Options;

<?php

return [
    'application.plugins' => (array) $plugins,
];

Examples;

Activate

<?php

return [
    'application.plugins' => [
        'disable-comments' => true,
        'regenerate-thumbnails' => true,
    ],
];

Deactivate

<?php

return [
    'application.plugins' => [
        'disable-comments' => false,
        'regenerate-thumbnails' => false,
    ],
];

Note;

Intervention uses activate_plugin(), which requires a path to the plugin file.

Intervention matches folder name to the plugin file name, 'disable-comments' => true becomes 'disable-comments/disable-comments.php' => true

Should folder and file name not match, use the full path;

<?php

return [
    'application.plugins' => [
        'advanced-custom-fields-pro/acf.php' => true,
    ],
];

Bug?