| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/www/wp-content/themes/frames/ |
Upload File : |
<?php
/**
* @package HaruTheme
* @version 1.0.0
* @author Administrator <admin@harutheme.com>
* @copyright Copyright (c) 2017, HaruTheme
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://harutheme.com
*/
// Load the HARU theme framework, all functions for theme will in includes folder in framework folder
require get_template_directory() . '/framework/haru-framework.php';
// Remove plugin flag from redux. Get rid of redirect
if ( ! function_exists( 'haru_remove_as_plugin_flag' ) ) {
function haru_remove_as_plugin_flag() {
ReduxFramework::$_as_plugin = false;
}
add_action( 'redux/construct', 'haru_remove_as_plugin_flag' );
}
if ( ! function_exists( 'haru_add_theme_support' ) ) {
function haru_add_theme_support() {
add_theme_support( 'html5', [ 'script', 'style' ] );
}
add_action( 'after_setup_theme', 'haru_add_theme_support' );
}
// Disable revslider notice.
if ( function_exists( 'rev_slider_shortcode' ) ) {
add_action( 'admin_init', 'haru_disable_revslider_notice' );
}
function haru_disable_revslider_notice() {
update_option( 'revslider-valid-notice', 'false' );
}
// Remove Contact Form 7 auto p
add_filter( 'wpcf7_autop_or_not', '__return_false' );
// https://stackoverflow.com/questions/66611705/getting-notice-is-wordpress-wp-scriptslocalize-was-called-incorrectly
add_filter( 'doing_it_wrong_trigger_error', '__return_false', 10, 0 );