Skip to Content
✨ WP Bones 1.9.6 is out! Check the Release Notes →

>= v1.9.5

config/plugin.php - New starting from v1.9.5
<?php if (!defined("ABSPATH")) { exit(); } return [ /* |-------------------------------------------------------------------------- | Plugin priorities |-------------------------------------------------------------------------- | | Here you may configure the priority of each hook your plugin uses. | Defaults to 10 if you don’t override them. | */ 'priorities' => [ 'init' => 10, 'widgets_init' => 10, 'admin_init' => 10, 'set_screen_option' => 10, ], ];

>= v1.6.6 <= 1.9.4

config/plugin.php - New in v1.6.6
<?php if (!defined("ABSPATH")) { exit(); } return [ /* |-------------------------------------------------------------------------- | Logging Configuration |-------------------------------------------------------------------------- | | Here you may configure the log settings for your plugin. | */ "logging" => [ /** * Type of log. * Available Settings: "single", "daily", "errorlog". * * - "errorlog", the log will be saved in the default WordPress log file. * Usually, this is located in the wp-content/debug.log file. * * - "single", the log will be saved in a single file in the log_path directory. * Default: [plugin-path]/storage/logs/debug.log * * - "daily", the log will be saved in a daily file in the log_path directory. * Default: [plugin-path]/storage/logs/[Y-m-d].log * Example: [plugin-path]/storage/logs/2024-10-09.log */ "type" => "errorlog", /** * The path where the log will be saved. * Default: [plugin-path]/storage/logs/ */ //"path" => '', /** * Daily format. * Default: 'Y-m-d' */ "daily_format" => 'Y-m-d', /** * The timestamp format used in the log. * Default: 'd-M-Y H:i:s T' * Example: [09-Oct-2024 12:51:22 UTC] [debug]: This is a debug message */ "timestamp_format" => 'd-M-Y H:i:s T', ], ];

<= v1.6.5

config/plugin.php - DEPRECATED in v1.6.6
<?php if (!defined('ABSPATH')) { exit(); } return [ /* |-------------------------------------------------------------------------- | Logging Configuration |-------------------------------------------------------------------------- | | Here you may configure the log settings for your plugin. | | Available Settings: "single", "daily", "errorlog". | | Set to false or 'none' to stop logging. | */ 'log' => 'errorlog', 'log_level' => 'debug', ];
Last updated on