403Webshell
Server IP : 84.246.212.44  /  Your IP : 216.73.217.86
Web Server : Apache
System : Linux vps-699887-mix.servidor.hosting 5.14.0-570.44.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 17 10:32:11 EDT 2025 x86_64
User : canterasdemuro.es ( 10006)
PHP Version : 8.1.34
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/canterasdemuro.es/httpdocs/wp-content/themes/hello-elementor-child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/canterasdemuro.es/httpdocs/wp-content/themes/hello-elementor-child/functions.php
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:

if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
    function chld_thm_cfg_locale_css( $uri ){
        if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
            $uri = get_template_directory_uri() . '/rtl.css';
        return $uri;
    }
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
         
if ( !function_exists( 'child_theme_configurator_css' ) ):
    function child_theme_configurator_css() {
        wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'hello-elementor','hello-elementor','hello-elementor-theme-style','hello-elementor-header-footer' ) );
    }
endif;
add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 );

//ENLACES PERMANENTES SEGÚN IDIOMA
function custom_post_permalink($permalink, $post, $leavename) {
    if (function_exists('pll_current_language')) {
        $lang = pll_current_language();
        if ($lang == 'gl') {
            $permalink = str_replace('/contacto-2/', '/contacto/', $permalink);
        }
    }
    return $permalink;
}
add_filter('post_link', 'custom_post_permalink', 10, 3);

// END ENQUEUE PARENT ACTION

Youez - 2016 - github.com/yon3zu
LinuXploit