X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/plugins/bunyad-demo-import/inc
home
/
notabjze
/
hourglass.life
/
wp-content
/
plugins
/
bunyad-demo-import
/
inc
/
ðŸ“
..
📄
CustomizerImporter.php
(7.12 KB)
📄
CustomizerOption.php
(489 B)
📄
Downloader.php
(3.71 KB)
📄
Helpers.php
(21.57 KB)
📄
ImportActions.php
(5.99 KB)
📄
Importer.php
(6.19 KB)
📄
Logger.php
(1.38 KB)
📄
OneClickDemoImport.php
(14.61 KB)
📄
ReduxImporter.php
(2.26 KB)
📄
WPCLICommands.php
(9.29 KB)
📄
WXRImporter.php
(4.57 KB)
📄
WidgetImporter.php
(12.71 KB)
📄
menus.php
(6.94 KB)
Editing: Logger.php
<?php /** * Logger class used in the One Click Demo Import plugin * * @package ocdi */ namespace OCDI; class Logger extends \AwesomeMotive\WPContentImporter2\WPImporterLoggerCLI { /** * Variable for front-end error display. * * @var string */ public $error_output = ''; /** * Overwritten log function from WP_Importer_Logger_CLI. * * Logs with an arbitrary level. * * @param mixed $level level of reporting. * @param string $message log message. * @param array $context context to the log message. */ public function log( $level, $message, array $context = array() ) { // Save error messages for front-end display. $this->error_output( $level, $message, $context = array() ); if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( $this->min_level ) ) { return; } printf( '[%s] %s' . PHP_EOL, strtoupper( $level ), $message ); } /** * Save messages for error output. * Only the messages greater then Error. * * @param mixed $level level of reporting. * @param string $message log message. * @param array $context context to the log message. */ public function error_output( $level, $message, array $context = array() ) { if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( 'error' ) ) { return; } $this->error_output .= sprintf( '[%s] %s<br>', strtoupper( $level ), $message ); } }
Upload File
Create Folder