403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/demo-import.php
<?php

// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Import demos
function buka_demo_import() {

	$en = (BUKA_IS_RTL ? '' : '-en');

	return [
		[
			'import_file_name'           => esc_html__('Demo Content Import', 'wp-buka'),
			'import_file_url'            => 'https://v3dboy.ir/previews/wordpress/buka/demo-data'.$en.'/demo-content.xml',
			'import_widget_file_url'     => 'https://v3dboy.ir/previews/wordpress/buka/demo-data'.$en.'/widgets.wie',
			'import_customizer_file_url' => 'https://v3dboy.ir/previews/wordpress/buka/demo-data'.$en.'/customizer.dat',
			'import_preview_image_url'   => get_theme_file_uri('screenshot.png'),
			'preview_url'                => 'https://v3dboy.ir/previews/wordpress/buka',
		],
	];
}

add_filter( 'ocdi/import_files', 'buka_demo_import' );

// After import
function buka_after_demo_import() {

	$main_menu = get_term_by('name', BUKA_IS_RTL ? 'فهرست سرصفحه' : 'Header Menu', 'nav_menu');
	$front_page = get_page_by_title(BUKA_IS_RTL ? 'خانه ساده' : 'Home Simple');
	$blog_page  = get_page_by_title(BUKA_IS_RTL ? 'بلاگ' : 'Blog');

	set_theme_mod('nav_menu_locations', [
        'header_menu' => $main_menu->term_id,
    ]);

	update_option('show_on_front', 'page');
    update_option('page_on_front', $front_page->ID);
    update_option('page_for_posts', $blog_page->ID);
}

add_action('ocdi/after_import', 'buka_after_demo_import');

Youez - 2016 - github.com/yon3zu