Action hook 'personal_options'

in WP Core File wp-admin/user-edit.php at line 422

View Source

personal_options

Action Hook
Description
Fires at the end of the 'Personal Options' settings table on the user editing screen.

Hook Information

File Location wp-admin/user-edit.php View on GitHub
Hook Type Action
Line Number 422

Hook Parameters

Type Name Description
WP_User $profile_user The current WP_User object.

Usage Examples

Basic Usage
<?php
// Hook into personal_options
add_action('personal_options', 'my_custom_function', 10, 1);

function my_custom_function($profile_user) {
    // Your custom code here
}

Source Code Context

wp-admin/user-edit.php:422 - How this hook is used in WordPress core
<?php
 417  					 *
 418  					 * @since 2.7.0
 419  					 *
 420  					 * @param WP_User $profile_user The current WP_User object.
 421  					 */
 422  					do_action( 'personal_options', $profile_user );
 423  					?>
 424  
 425  				</table>
 426  				<?php
 427  				if ( IS_PROFILE_PAGE ) {

PHP Documentation

<?php
/**
					 * Fires at the end of the 'Personal Options' settings table on the user editing screen.
					 *
					 * @since 2.7.0
					 *
					 * @param WP_User $profile_user The current WP_User object.
					 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/user-edit.php
Related Hooks

Related hooks will be displayed here in future updates.