← Back
Editing: functions.php
<?php /** * Copyright (C) 2014-2025 ServMask Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Attribution: This code is part of the All-in-One WP Migration plugin, developed by * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ if ( ! defined( 'ABSPATH' ) ) { die( 'Kangaroos cannot jump here' ); } /** * Check whether export/import is running * * @return boolean */ function ai1wmue_is_running() { if ( isset( $_GET['file'] ) || isset( $_POST['file'] ) ) { return true; } return false; } /** * Get reset-db-backup.json absolute path * * @return string */ function ai1wmue_reset_db_backup_path() { return AI1WM_STORAGE_PATH . DIRECTORY_SEPARATOR . AI1WMUE_RESET_DB_BACKUP; } /** * Get allowed HTML tags when output with `wp_kses()` * * @return array<string, mixed> */ function ai1wmue_allowed_html_tags() { return array( 'a' => array( 'href' => array(), 'target' => array(), 'class' => array(), ), 'br' => array(), 'i' => array( 'class' => array(), ), 'small' => array(), 'strong' => array(), ); }
Save File
Cancel