// 1. Tắt tính năng đăng ký thành viên công khai
add_filter('option_users_can_register', '__return_false');

// 2. Chặn truy cập vào trang đăng ký mặc định wp-signup.php hoặc wp-login.php?action=register
add_action('init', function() {
    if (isset($_GET['action']) && $_GET['action'] === 'register') {
        wp_die(__('Tính năng đăng ký tài khoản đã bị khóa hoàn toàn.'));
    }
});

// 3. Chặn hành động tạo User mới từ Admin và REST API
add_action('pre_user_query', function($user_search) {
    // Không cho phép thực hiện thêm user qua lệnh insert
});

add_action('user_register', function() {
    wp_die(__('Hệ thống đã bị khóa tính năng tạo tài khoản mới.'));
}, 1);

// 4. Ẩn menu "Thêm mới" (Add New) người dùng trong Admin Dashboard
add_action('admin_menu', function() {
    remove_submenu_page('users.php', 'user-new.php');
});

// 5. Nếu cố tình truy cập trực tiếp vào đường dẫn /wp-admin/user-new.php thì chặn lại
add_action('load-user-new.php', function() {
    wp_die(__('Trang tạo tài khoản đã bị vô hiệu hóa.'));
});<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//thieponline.juhiwedding.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://thieponline.juhiwedding.com/post-sitemap1.xml</loc>
		<lastmod>2026-07-29T10:01:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thieponline.juhiwedding.com/post-sitemap2.xml</loc>
		<lastmod>2026-07-26T02:58:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thieponline.juhiwedding.com/page-sitemap.xml</loc>
		<lastmod>2025-10-11T16:19:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thieponline.juhiwedding.com/mau-thiep-sitemap.xml</loc>
		<lastmod>2026-06-29T07:32:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thieponline.juhiwedding.com/category-sitemap.xml</loc>
		<lastmod>2026-07-29T10:01:29+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->