function register_styles_scripts() {
//стили
wp_register_style('style', get_template_directory_uri() .
'/style.css');
wp_enqueue_style('style');
//скрипты
wp_register_script('slick', get_template_directory_uri() .
'/js/jquery.js');
wp_enqueue_script('slick');
}
add_action('wp_enqueue_scripts', 'register_styles_scripts');
$.noConflict();
jQuery( document ).ready(function( $ ) {
......
});
add_filter( 'wp_mail_smtp_custom_options' , function( $phpmailer ){
$phpmailer->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
return $phpmailer;
});
/*
*Template Name: Название Страницы
*/
?>
remove_theme_support( 'wc-product-gallery-zoom' );
remove_action( 'add_option_new_admin_email', 'update_option_new_admin_email' );
remove_action( 'update_option_new_admin_email', 'update_option_new_admin_email' );
/**
* Disable the confirmation notices when an administrator
* changes their email address.
*
* @see http://codex.wordpress.com/Function_Reference/update_option_new_admin_email
*/
function wpdocs_update_option_new_admin_email( $old_value, $value ) {
update_option( 'admin_email', $value );
}
add_action( 'add_option_new_admin_email', 'wpdocs_update_option_new_admin_email', 10, 2 );
add_action( 'update_option_new_admin_email', 'wpdocs_update_option_new_admin_email', 10, 2 );
add_image_size( 'my_gallery', 350, 350, true );