storage-file-directory.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | use AC\Type\Url\Documentation; |
| 6 | |
| 7 | ?> |
| 8 | <div class="acu-pt-1 lg:acu-pr-8"> |
| 9 | <strong class="acu-block"><?= __('File Directory', 'codepress-admin-columns'); ?></strong> |
| 10 | |
| 11 | <p> |
| 12 | <?= __('Set the storage directory to a folder on your file system.', 'codepress-admin-columns') ?> |
| 13 | <?= __( |
| 14 | 'Add this code snippet to your theme\'s functions.php file to start using File Storage.', |
| 15 | 'codepress-admin-columns' |
| 16 | ) ?> |
| 17 | </p> |
| 18 | |
| 19 | |
| 20 | <pre class="acu-block acu-bg-[#F9FAFB] acu-px-4 acu-rounded acu-border acu-border-solid acu-border-ui-border"><code class="acu-bg-[#F9FAFB]"> |
| 21 | add_filter( <span class="acu-text-notification-red">'acp/storage/file/directory'</span>, function() { |
| 22 | return get_stylesheet_directory() . '/acp-settings'; |
| 23 | } ); |
| 24 | </code> |
| 25 | </pre> |
| 26 | |
| 27 | <p><?= __( |
| 28 | 'Once the file directory is set you can migrate your column settings from the database to the |
| 29 | file storage using our migration tool that will be available on this page.', |
| 30 | 'codepress-admin-columns' |
| 31 | ) ?></p> |
| 32 | <p> |
| 33 | <?= sprintf( |
| 34 | __('Read more about %s', 'codepress-admin-columns'), |
| 35 | sprintf( |
| 36 | '<a target="_blank" href="%s">%s</a>', |
| 37 | Documentation::create_local_storage(), |
| 38 | esc_html(__('How to setup File Storage', 'codepress-admin-columns')) |
| 39 | ) |
| 40 | ) ?> |
| 41 | </p> |
| 42 | </div> |