PluginProbe
DecaLog / 3.0.2
DecaLog v3.0.2
3.0.2 3.1.0 3.10.0 3.2.0 3.3.0 3.4.0 3.4.1 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.6.3 3.7.0 3.7.1 3.8.0 3.9.0 3.9.1 4.0.0 4.1.0 4.2.0 4.3.0 4.3.1 4.4.0 4.5.0 All 75 releases
decalog / includes / features / class-bootstrapmanager.php

class-bootstrapmanager.php in DecaLog 3.0.2, at includes/features/class-bootstrapmanager.php

38 lines 899 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Bootstrap utilities for DecaLog.
4 *
5 * @package Features
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 2.4.0
8 */
9
10 namespace Decalog\Plugin\Feature;
11
12 use Decalog\Plugin\Feature\DLogger;
13 use Decalog\System\Option;
14 use Decalog\Plugin\Feature\Log;
15
16 /**
17 * Bootstrap utilities for DecaLog.
18 *
19 * Defines methods and properties for bootstrap management.
20 *
21 * @package Features
22 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
23 * @since 2.4.0
24 */
25 class BootstrapManager {
26
27 /**
28 * Get the line to add to wp-settings.php file.
29 *
30 * @return string The line to add.
31 * @since 2.4.0
32 */
33 public static function install_help() {
34 $file = str_replace( ABSPATH, '', DECALOG_PLUGIN_DIR . 'assets/_decalog_bootstrap.php' );
35 return "if (file_exists(ABSPATH.'wp-content/plugins/decalog/assets/_decalog_bootstrap.php')){include ABSPATH.'" . $file . "';}";
36 }
37 }
38