芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/themes/dexolix/inc/admin/class-codestar-import.php
$import ) { $file_path = $downloader->download_file( $import['file_url'], 'demo-json-import-file-'. $index . '-'. date( 'Y-m-d__H-i-s' ) .'.json' ); $file_raw = OCDI\Helpers::data_from_file( $file_path ); update_option( $import['option_name'], json_decode( $file_raw, true ) ); } } else if( ! empty( $import_files[$selected_index]['local_import_json'] ) ) { foreach( $import_files[$selected_index]['local_import_json'] as $index => $import ) { $file_path = $import['file_path']; $file_raw = OCDI\Helpers::data_from_file( $file_path ); update_option( $import['option_name'], json_decode( $file_raw, true ) ); } } $ocdi = OCDI\OneClickDemoImport::get_instance(); $log_path = $ocdi->get_log_file_path(); OCDI\Helpers::append_to_file( 'Custom Framework file loaded.', $log_path ); } add_action('ocdi/after_content_import_execution', 'prefix_after_content_import_execution', 3, 99 ); }