# jetpack/16.3/jetpack_vendor/automattic/jetpack-masterbar/src/profile-edit/bootstrap.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3. 27 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-masterbar/src/profile-edit/bootstrap.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3/raw/jetpack_vendor/automattic/jetpack-masterbar/src/profile-edit/bootstrap.php
- Modified: 2025-11-24T17:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-masterbar/src/profile-edit/bootstrap.php#L10-L20`.

```php
<?php
/**
 * Bootstrap the WP.com User profile edit restriction.
 *
 * @package automattic/jetpack-masterbar
 */

namespace Automattic\Jetpack\Masterbar;

use Automattic\Jetpack\Connection\Manager as Connection_Manager;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

require_once __DIR__ . '/class-wpcom-user-profile-fields-revert.php';

/**
 * Prevent WP.com user profile fields (first_name, last_name, display_name, description) to be updated.
 */
function load_the_user_profile_info_revert() {
	new WPCOM_User_Profile_Fields_Revert( new Connection_Manager( 'jetpack' ) );
}

\add_action( 'load-profile.php', __NAMESPACE__ . '\load_the_user_profile_info_revert' );
\add_action( 'load-user-edit.php', __NAMESPACE__ . '\load_the_user_profile_info_revert' );

```
