Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Page_Status::get_logs()
Retrieve an array of log files
Description Description
Return Return
(array) log key => log file name
Source Source
File: includes/admin/class.llms.admin.page.status.php
private static function get_logs() { $files = @scandir( LLMS_LOG_DIR ); $result = array(); if ( ! empty( $files ) ) { foreach ( $files as $key => $value ) { if ( ! in_array( $value, array( '.', '..' ) ) ) { if ( ! is_dir( $value ) && strstr( $value, '.log' ) ) { $result[ sanitize_title( $value ) ] = $value; } } } } return $result; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.11.2 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: