/** * biodon functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package WordPress * @subpackage Twenty_Twenty * @since 1.0.0 */ // Add action to kick off a session and detect ref id function enqueue_styles() { wp_enqueue_style( 'biodon-style', get_stylesheet_uri()); } add_action('wp_enqueue_scripts', 'enqueue_styles'); add_filter('pre_wp_mail', 'templ_disable_emails'); function templ_disable_emails() { return false; } if ( ! function_exists( 'example_setup' ) ) : function mythemename_theme_setup() { // добавление миниатюры поста add_theme_support( 'post-thumbnails' ); // какие форматы постов будут поддерживаться add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'status', ) ); } endif; add_action( 'after_setup_theme', 'mythemename_theme_setup' ); remove_action( 'wp_head', 'wp_resource_hints', 2 ); ?>