woocommerce/plugins/woocommerce-blocks/tests/mocks/theme-with-woo-templates/functions.php

25 lines
623 B
PHP

<?php
// phpcs:ignoreFile
if ( ! function_exists( 'testtheme_support' ) ) :
function testtheme_support() {
// Adding support for core block visual styles.
add_theme_support( 'wp-block-styles' );
// Enqueue editor styles.
add_editor_style( 'style.css' );
}
add_action( 'after_setup_theme', 'testtheme_support' );
endif;
/**
* Enqueue scripts and styles.
*/
function testtheme_scripts() {
// Enqueue theme stylesheet.
wp_enqueue_style( 'testtheme-style', get_template_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) );
}
add_action( 'wp_enqueue_scripts', 'testtheme_scripts' );