Site logo

Archived topic

Add user contact methods to Dynamic Data

3 replies · Started by Mallory on October 3, 2022

Viewing posts 1–4 of 4

Hello guys,

I added two new fields to authors :

add_filter( 'user_contactmethods', 'modify_user_contact_methods' );

function modify_user_contact_methods( $methods ) {

	// Add user contact methods
	$methods['linkedin']   = __( 'LinkedIn'   );
	$methods['title'] = __( 'Job Title' );

	return $methods;
}

I would like to use those fields in Dynamic Data, any tips ?

https://prnt.sc/mEuYf7OL7nxS
https://prnt.sc/1C_ohllmyJcV

I should have thought of it before, it's perfect!

Nice! :)

This archived topic is closed to new replies.