Server IP : 111.118.215.189 / Your IP : 216.73.216.162 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /proc/thread-self/root/opt/wp/plugins/jetpack/modules/masterbar/profile-edit/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php /** * Bootstrap the WP.com User profile edit restriction. * * @package automattic\jetpack */ namespace Automattic\Jetpack\Dashboard_Customizations; use Automattic\Jetpack\Connection\Manager as Connection_Manager; require_once __DIR__ . '/profile-edit.php'; 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' );